Class: Ra::Pattern::Checkers
Overview
A checkers pattern that alternates colors using:
colors[⌊√(point.x² + point.z²)⌋]
Instance Attribute Summary collapse
-
#colors ⇒ Object
Returns the value of attribute colors.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(colors:, transform: Transform::IDENTITY) ⇒ Checkers
constructor
A new instance of Checkers.
Methods inherited from Base
Constructor Details
Instance Attribute Details
#colors ⇒ Object
Returns the value of attribute colors.
9 10 11 |
# File 'lib/ra/pattern/checkers.rb', line 9 def colors @colors end |