Unconventional Text Effects In JavaScript – Blotter.js

Category: Javascript , Recommended , Text | February 15, 2018
Author: bradley
Views Total: 1,755
Official Page: Go to website
Last Update: February 15, 2018
License: MIT

Preview:

Unconventional Text Effects In JavaScript – Blotter.js

Description:

Blotter.js is a powerful JavaScript library to draw fancy, unconventional text effects with canvas, Three.js, and Underscore.js.

How to use it:

Insert the Blotter.js and ChannelSplitMaterial.js into the document.

<script src="/path/to/build/blotter.min.js"></script>
<script src="/path/to/build/ChannelSplitMaterial.js"></script>

Specify the text to apply the unconventional effect.

var myText = new Blotter.Text("Text Here", {
    // more options here
});

Apply a Material to the text effect.

var material = new Blotter.ChannelSplitMaterial();
var blotter = new Blotter(material, { texts : text });

Display the text effect on the screen.

var scope = blotter.forText(text);
scope.appendTo(document.body);

Default options.

{
  family       : 'sans-serif',
  size         : 12,
  leading      : 1.5,
  fill         : '#000',
  style        : 'normal',
  weight       : 400,
  padding      : 0,
  paddingTop   : 0,
  paddingRight : 0,
  paddingBottom: 0,
  paddingLeft  : 0
};

You Might Be Interested In:


Leave a Reply