Skip to main content

Class: StrokeDrawContext

Rendering.WebGL.StrokeDrawContext(randomSeedopt)

Keeps state for last point in strokeRandom generator seed continuation, needed for proper rendering.

Constructor

new StrokeDrawContext(randomSeedopt)

Parameters:
NameTypeAttributesDefaultDescription
randomSeedint<optional>Date.now() / 1000

Since:

  • version 1.0

Methods

copyTo(drawContext)

Copy current context to another one

Parameters:
NameTypeDescription
drawContextRendering.WebGL.StrokeDrawContextcopy target

Home