A procedurally generated infinite surface.
Can be clipped to create a surface.
Attributes
- Companion:
- object
- Graph
- Supertypes
- Self type
Members list
Value members
Abstract methods
Concrete methods
Returns the color at position (x, y).
Returns the color at position (x, y).
Attributes
Contramaps the positions from this plane.
Contramaps the positions from this plane.
Attributes
Contramaps this plane using a matrix instead of a function.
Contramaps this plane using a matrix instead of a function.
This method can be chained multiple times efficiently.
Note that this is contramaping. The operation is applied as [a b c] [dx] = [sx] [d e f] [dy] [sy] [0 0 1] [ 1] [ 1]
Where (sx,sy) are the positions in the original plane and (dx, dy) are the positions in the new plane.
This means that you need to invert the transformations to use the common transformation matrices.
For example, the matrix:
[2 0 0] [dx] = [sx] [0 2 0] [dy] [sy] [0 0 1] [ 1] [ 1]
Will scale down the image, not scale up.
Attributes
Flatmaps this plane
Flatmaps this plane
Attributes
Inverts a plane color.
Inverts a plane color.
Attributes
Maps the colors from this plane.
Maps the colors from this plane.
Attributes
Rotates a plane by a certain angle (clockwise).
Rotates a plane by a certain angle (clockwise).
Attributes
Converts this plane to a RAM surface, assuming (0, 0) as the top-left corner.
Converts this plane to a RAM surface, assuming (0, 0) as the top-left corner.
Attributes
- height
surface height
- width
surface width
Converts this plane to a surface view, assuming (0, 0) as the top-left corner.
Converts this plane to a surface view, assuming (0, 0) as the top-left corner.
Attributes
- height
surface view height
- width
surface view width
Transposes a plane (switches the x and y coordinates).
Transposes a plane (switches the x and y coordinates).
Attributes
Combines this plane with another by combining their colors with the given function.
Combines this plane with another by combining their colors with the given function.