Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
rtiow
main
Top Level Namespace
AaBb
BVHNode
Camera
Checker
Color
CoverScene
Dielectric
HitRecord
Hittable
HittableList
Lambertian
Material
MaybeRayAndAttenuation
Metal
MovingSphere
Noise
Perlin
Ray
Scene
SolidColor
Sphere
Texture
TwoPerlinSpheres
TwoSpheres
Vec3
Generated using Crystal 1.16.3
2025-12-23 22:04:23 UTC
class
Checker
Checker
Texture
Reference
Object
Defined in:
texture.cr
Constructors
.new
(even : Texture, odd : Texture)
.new
(even : Color, odd : Color)
Instance Method Summary
#value
(u, v, p) : Color
Instance methods inherited from class
Texture
value(u : Float64, v : Float64, p : Vec3) : Color
value
Constructor Detail
def self.
new
(even :
Texture
, odd :
Texture
)
#
[
View source
]
def self.
new
(even :
Color
, odd :
Color
)
#
[
View source
]
Instance Method Detail
def
value
(u, v, p) :
Color
#
[
View source
]