Recent Changes - Search:

ZGameEditor

Documentation

Community

Edit sidebar

BitmapExpression

BitmapExpression

A bitmap producer component that generates a bitmap from a mathematical expression.

This component can only be used in the Bitmap.Producers property.

Example usage: BallTexture in ZPong sample project.

Properties

Expression

The expression which defines the bitmap. The expression is called once for every pixel in the bitmap. A number of special properties are valid within the expression. "X" and "Y" holds the current x and y coordinate in 0 to 1 range. Assign "Pixel" color to set the current pixel. Example of a valid expression: "this.Pixel.R=abs(X-0.5)*2;"

Edit - History - Print - Recent Changes - Search
Page last modified on February 24, 2010, at 10:20 pm