Time Sink

This is a simple tool to create one second looping GIFs from a sink script.

The source script is executed to draw each frame. The time command returns a value between 0 and 1, indicating which frame is being requested.

API

The standard sink library is available, and provides many math related commands.

CommandDescription
circle center, rad, [segs] Create a list of points in a circle
colcomp col Break down a hex color into RGBA components
fill pts, col Fill the list of points with hex color
hsl h, s, l Convert HSL to a hex color
hsla h, s, l, a Convert HSLA to a hex color
maxticks ticks Set the maximum ticks before killing the script
rect start, size, [rad, segs] Create a list of points in a rounded rectangle
rgb r, g, b Convert RGB to a hex color
rgba r, g, b, a Convert RGBA to a hex color
stroke pts, col, [linewidth, corner] Stroke the list of points with hex color, line width, and corner type
time Get the requested time to render (0 to 1)
xf.new Create a transform matrix (list of 6 elements)
xf.reset m Reset a transform matrix
xf.mul m1, m2 Multiply two transform matricies
xf.invert m Invert a transform matrix
xf.rotate m, ang Rotate a transform matrix by an angle
xf.translate m, amt Translate a transform matrix by an amount
xf.scale m, amt Scale a transform matrix by an amount
xf.apply m, pts Apply a transform matrix to a list of points

Created by voidqk from syntheti.cc