Skip to content
0880 edited this page Apr 5, 2024 · 2 revisions

Methods

init()

  • Initializes the console array.

log(int i)

  • Logs an integer value to the console.

log(float f)

  • Logs a float value to the console.

log(String s)

  • Logs a string to the console.

log(boolean b)

  • Logs a boolean value to the console.

log(Object obj)

  • Logs the string representation of an object to the console.

error(String s)

  • Logs an error message to the console.

readDebug()

  • Returns the array of logged messages.

line(float x0, float y0, float x1, float y1, Color color, float strokeWidth)

  • Draws a line between two points with specified color and stroke width.

rectangle(float x, float y, float width, float height, float rotation, Color color, float strokeWidth)

  • Draws a rectangle with specified dimensions, rotation, color, and stroke width.

circle(float x, float y, float radius, Color color, float strokeWidth)

  • Draws a circle with specified center, radius, color, and stroke width.

polygon(float[] vertices, Color color, float strokeWidth)

  • Draws a polygon with specified vertices, color, and stroke width.

Clone this wiki locally