RGB colors can be specified in three formats:

`[0.906 0.8 0.608]`- Red, green, and blue color components between 0 and 1 in square brackets.
`[231 204 155]`- Red, green, and blue color components between 0 and 255 in square brackets.
`(e7cc9b)`- Red, green, and blue
(RrGgBb)
hexadecimal color components between
`00`and`fF`in parentheses.

In the command arguments [*rgb* ...] indicates a
bracketed sequence of colors. For example:

[(c28847) [231 204 155] [0.635 0.008 0.094]]

*x y R*_{d}rgb**drop**- Places a drop of color
*rgb*and radius*R*centered at location_{d}*x,y*. *x y R*[_{i}*rgb*...]*n***concentric-rings**- Places
*n*rings in color sequence [*rgb*...] centered at location*x,y*, each ring having thickness*R*._{i} *x y θ*[*R*...] [*rgb*...]*R*_{d}**line-drops**- Places drops of colors [
*rgb*...] (in sequence) of radius*R*in a line through_{d}*x,y*at*θ*degrees clockwise from vertical at distances [*R*...] from*x,y*. *x y R θ S δ*[*rgb*...]*n R*_{d}**coil-drops**- Places
*n*drops of colors [*rgb*...] (in sequence) of radius*R*in an arc or spiral centered at_{d}*x,y*starting at radius*R*and*θ*degrees clockwise from vertical, moving*S*along the arc and incrementing the arc radius by*δ*after each drop. *x y R θ ε*[*rgb*...]*n R*_{d}**Gaussian-drops**- Places
*n*drops of colors [*rgb*...] of radius*R*randomly in a circular or elliptical disk centered at_{d}*x,y*having mean radius*R*,*θ*degrees clockwise from vertical, and length-to-width ratio*ε*. For a circular disk, 63% of drops are within radius*R*, 87% of drops are within*R*⋅sqrt(2), and 98% of drops are within radius 2⋅*R*. *x y L*[_{x}L_{y}θ*rgb*...]*n R*_{d}**uniform-drops**- Places
*n*drops of colors [*rgb*...] of radius*R*randomly in a_{d}*L*by_{x}*L*rectangle centered at location_{y}*x,y*and rotated by*θ*degrees clockwise from vertical.

*θ*[*R*...]*V S D***rake**- Pulls tines of diameter
*D*at*θ*degrees clockwise from the positive*y*-axis through the virtual tank at velocity*V*, moving fluid on the tine path a distance*S*. The tine paths are spaced [*R*...] from the tank center at their nearest points. *x*_{b}y_{b}x_{e}y_{e}V D**stylus**- Pulls a single tine of diameter
*D*from*x*to_{b},y_{b}*x*at velocity_{e},y_{e}*V*. Legacy name**stroke**also works. *x y*[*R*...]*ω θ D***stir**- Pulls tines of diameter
*D*in circular tracks of radii [*R*...] (negative*R*is counterclockwise) around location*x,y*at angular velocity*ω*. The maximum angle through which fluid is moved is*θ*degrees. *x y Γ t***vortex**- Rotates fluid clockwise around location
*x,y*as would result from an impulse of circulation*Γ*after time*t*. At small*t*the rotational shear is concentrated close to the center. As time passes the shear propagates outward. *θ λ Ω S***wiggle**- Applies sinsusoidal wiggle with period
*λ*and maximum displacement*S*to whole tank. With*θ*=0, a point at*x,y*is moved to*x*+*S*⋅sin(360⋅*y*/*λ*+*Ω*),*y*. *θ R***shift**- Shifts tank by
*R*at*θ*degrees clockwise from vertical. - [
*n**S**Ω***tines**] - The
**tines**command and its arguments are replaced by a sequence of*n*numbers. The difference between adjacent numbers is*S*and the center number is*Ω*when*n*is odd and*S*/2−*Ω*when*n*is even.

Copyright © 2019 Aubrey Jaffer

I am a guest and not a member of the MIT Computer Science and Artificial Intelligence Laboratory.
My actions and comments do not reflect in any way on MIT. | ||

Topological Computer Graphics | ||

agj @ alum.mit.edu | Go Figure! |