roughjs

RoughGenerator: Creating Shapes without an Actual Drawing Context

When a shape is drawn using RoughJS, a lot of randomization is used to create the sketchy look and feel. There are times when you want to maintain the initially rendered shape, i.e. not randomize again on subsequent redraws. (See this issue). This is where generators come in. RoughGenerator has the same api as RoughCanvas but it does not actually …

RoughGenerator: Creating Shapes without an Actual Drawing Context Read More »

RoughJS API: Config

When instantiating RoughCanvas, you can, optionally, pass in a configuration object. The object can have any of these properties: async An optional boolean property to create an async version of Canvas/Generator. This is required when running RoughJS in a worker. Default value is false. options An options object that sets the default values for all shapes in the RoughCanvas instance. …

RoughJS API: Config Read More »