coordinateMode()

changes where the coordinates originate from

Examples

coordinateMode(TOP_LEFT)
coordinateMode(BOTTOM_LEFT)

Sets the coordinate mode to TOP_LEFT or BOTTOM_LEFT. Coordinate mode is set to BOTTOM_LEFT by default. BOTTOM_LEFT mode mimics the standard mathematical setup where coordinate (0,0) is in the bottom left and the y-axis increases upwards.

coordinateMode(MODE)
InputDescriptionValue(s)Default

MODE

coordinate mode to be set

TOP_LEFT BOTTOM_LEFT

BOTTOM_LEFTpy

see drawTickAxes for more info.

Find these documents helpful? Let the people who made them help your child learn to code at Strivemath!

We'd love to hear your Feedback/Comments here.

Last updated