### draw.light Source: https://zymplectic.com/documentation.html Sets the light source position or direction. ```APIDOC ## draw.light ### Description Sets the light source position or direction. ### Method `draw.light(double x, double y, double z, double p)` ### Parameters - `x`, `y`, `z`: Light source position or direction coordinates. - `p`: If 0, the light is directional; otherwise, it's a point source. ### Notes - If not set, the light source is at the camera. - Has no effect in 2D mode. ``` -------------------------------- ### draw.shine Source: https://zymplectic.com/documentation.html Assigns specular and shininess values for drawn objects. ```APIDOC ## draw.shine ### Description Assigns specular and shininess values for drawn objects. ### Method `draw.shine(double a, double b)` ### Parameters - `a`: Specular value, ranging from 0 to 1. - `b`: Shininess value, ranging from 0 to 1. ### Notes - Has no effect in 2D mode. ``` -------------------------------- ### draw.textscreen Source: https://zymplectic.com/documentation.html Writes text at screen pixel coordinates. ```APIDOC ## draw.textscreen ### Description Writes text at screen pixel coordinates. ### Method `draw.textscreen(double x, double y, char* A, int a)` ### Parameters - `x`, `y`: Screen pixel coordinates. (0,0 is center, default resolution 768x768, range -384 to 384). - `A`: Character array containing the text. - `a`: Length of the character array. ``` -------------------------------- ### draw.rgb Source: https://zymplectic.com/documentation.html Assigns a color (RGB and optional alpha) for subsequent drawn objects. ```APIDOC ## draw.rgb ### Description Assigns a color (RGB and optional alpha) for subsequent drawn objects. ### Method `draw.rgb(double r, double g, double b)` `draw.rgb(double r, double g, double b, double a)` ### Parameters - `r`, `g`, `b`: Red, green, and blue components of the color, ranging from 0 to 1. - `a` (optional): Alpha component of the color, ranging from 0 to 1. Defaults to 1. ``` -------------------------------- ### draw.text Source: https://zymplectic.com/documentation.html Writes text at a specified 3D or 2D position. ```APIDOC ## draw.text ### Description Writes text at a specified 3D or 2D position. ### Method `draw.text(double x, double y, char* A, int a)` `draw.text(double x, double y, double z, char* A, int a)` ### Parameters - `x`, `y`: 2D coordinates for the text position. - `z` (optional): 3D coordinate for the text position. - `A`: Character array containing the text. - `a`: Length of the character array. ``` -------------------------------- ### draw.rod Source: https://zymplectic.com/documentation.html Draws a cylinder between two points with a specified radius. Optionally accepts rotation and edge count. ```APIDOC ## draw.rod ### Description Draws a cylinder between two points with a specified radius. Optionally accepts rotation and edge count. ### Method `draw.rod(double x1, double y1, double z1, double x2, double y2, double z2, double r)` `draw.rod(double x1, double y1, double z1, double x2, double y2, double z2, double r, double a, int n)` ### Parameters - `x1`, `y1`, `z1`: Coordinates of the first point. - `x2`, `y2`, `z2`: Coordinates of the second point. - `r`: Radius of the cylinder. - `a` (optional): Rotation in radians. Defaults to 0. - `n` (optional): Edge count. Defaults to 32. ### Notes - If `n > 16`, edges are drawn with smooth normals. - If in 2D mode, draws a cylinder ignoring depth. ``` -------------------------------- ### draw.hrod Source: https://zymplectic.com/documentation.html Draws a hollow cylinder between two points with specified radii. Optionally accepts rotation and edge count. ```APIDOC ## draw.hrod ### Description Draws a hollow cylinder between two points with specified radii. Optionally accepts rotation and edge count. ### Method `draw.hrod(double x1, double y1, double z1, double x2, double y2, double z2, double r, double ri)` `draw.hrod(double x1, double y1, double z1, double x2, double y2, double z2, double r, double ri, double a, int n)` ### Parameters - `x1`, `y1`, `z1`: Coordinates of the first point. - `x2`, `y2`, `z2`: Coordinates of the second point. - `r`: Outer radius of the hollow cylinder. - `ri`: Inner radius of the hollow cylinder. - `a` (optional): Rotation in radians. Defaults to 0. - `n` (optional): Edge count. Defaults to 32. ### Notes - If `n > 16`, edges are drawn with smooth normals. - If in 2D mode, draws a hollow cylinder ignoring depth. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.