Class: Ra::Pattern::Texture
Overview
A texture that can load an AVIF / JPG / PNG / BMP:
colors[⌊point.x⌋]
Instance Method Summary collapse
- #color(point:) ⇒ Ra::Color
-
#initialize(path:) ⇒ Texture
constructor
A new instance of Texture.
Constructor Details
#initialize(path:) ⇒ Texture
Returns a new instance of Texture.
12 13 14 15 |
# File 'lib/ra/pattern/texture.rb', line 12 def initialize(path:) super() @path = path end |