Skip to content

About

tixy.land on an endless, interactive canvas

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

InfiniTIXY

Infinite generative art canvas, aka tixy.land without borders. Write a JavaScript function which gets called once per frame, per point on the canvas. The return value (combined with the page settings) will determine the appearance of each point.

Demonstration

Usage

Your function will have access to the following numbers, which get passed to it automatically when it is called for each point:

Variable Description
t Time in seconds since the animation started.
i "Index" of the current point.
x X-coordinate of the current point.
y Y-coordinate of the current point.
mx X-coordinate of the mouse.
my Y-coordinate of the mouse.
c Total number of points currently rendered.

The first four parameters are the same as in the original tixy.land, hence its name "tixy"

You can also use any function or property of the standard Math object without the prefix, e.g. sin(x) instead of Math.sin(x).

As you enter your function, the canvas will update live to show the results. Click and drag to pan around, or use the mouse wheel to adjust the zoom.

Settings

Use Circles

If enabled, each point will be rendered as a circle. The radius is determined by magnitude of the number returned by your function (from 0 to 1).

If this setting is disabled, square pixels will be used instead.

Color

If enabled, your function should return a number representing an RGB colour. The value can be provided either as:

  • A hexadecimal colour code like 0x0050ED (blue), or
  • Using one of the built-in functions to create colours programmatically:
Function Example Description
rgb(r, g, b) rgb(255, 0, 0) Creates an RGB colour using red, green, and blue values. All values should be in the range 0–255.
hsv(h, s, v) hsv(0, 100, 100) Creates an HSV (Hue-Saturation-Value) colour. Hue is 0–360, Saturation and Value are 0–100.
hsl(h, s, l) hsl(120, 100, 50) Creates an HSL (Hue-Saturation-Lightness) colour. Hue is 0–360, Saturation and Lightness are 0–100.
hex(string) hex("#FF0000") Converts a hexadecimal string like "#FF5733" to an integer representing the same colour.

Cartesian

If enabled, the canvas will use Cartesian coordinates, where positive Y points upward. Disabling this setting will make the canvas instead use screen coordinates, like the original tixy.land, where positive Y points downward.

TIXY Emulator

If enabled, the canvas will emulate the tixy.land coordinate space and 16×16 grid.

Grid

If enabled, a grid will be displayed over the canvas. If you enable the Grid Values setting, your function's return value for each grid cell will be displayed. If this setting is disabled, the cell coordinates will be displayed instead.

Getting Started

Enter an expression in the function input, then check the visualization. Change the expression to modify the visualization, using t to create animation, x and y to create spatial patterns, and mx and my to create mouse interaction.

Enable Color to create colour visualizations, and change the other settings to further modify the rendering.

Click Reset Camera to reset the view, or Fullscreen to enter fullscreen mode.

See also

About

tixy.land on an endless, interactive canvas

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages