Method: Processing::Shape#rotateX

Defined in:
lib/processing/shape.rb

#rotateX(angle) ⇒ nil

Applies rotation around the x-axis to the shape.

Parameters:

  • angle (Numeric)

    angle for rotation

Returns:

  • (nil)

    nil

See Also:



524
525
526
527
# File 'lib/processing/shape.rb', line 524

def rotateX(angle)
  matrix__.rotate! @context.toDegrees__(angle), 1, 0, 0
  nil
end