Method: Processing::GraphicsContext#clip
- Defined in:
- lib/processing/graphics_context.rb
#clip(a, b, c, d) ⇒ nil
Limits the drawable rectangle.
The parameters a, b, c, and d are determined by rectMode().
574 575 576 577 578 |
# File 'lib/processing/graphics_context.rb', line 574 def clip(a, b, c, d) x, y, w, h = toXYWH__ @imageMode__, a, b, c, d @painter__.clip x, y, w, h nil end |