Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Plankton::Signal
Inherits
Struct
<
Value
<
Object
A uniform expression, evaluated on the GPU on every frame.
Constructors
cast
(value :
Number
) :
Signal
Source
cast
(value :
Signal
) :
Signal
Source
new
(op :
String
, args :
Array
(
Plankton::Signal
) = [] of
Signal
, value :
Float64
= 0.0, key :
String
= "")
Source
Instance methods
*
(other :
Scalar
) :
Signal
Source
+
(other :
Scalar
) :
Signal
Source
-
(other :
Scalar
) :
Signal
Source
-
Source
/
(other :
Scalar
) :
Signal
Source
abs
Source
args
Source
clamp
(low :
Scalar
= 0.0, high :
Scalar
= 1.0) :
Signal
Source
cos
Source
floor
Source
fract
Source
key
Source
lerp
(other :
Scalar
, amount :
Scalar
) :
Signal
Source
map
(in_low :
Scalar
, in_high :
Scalar
, out_low :
Scalar
, out_high :
Scalar
) :
Signal
Source
max
(other :
Scalar
) :
Signal
Source
min
(other :
Scalar
) :
Signal
Source
op
Source
pow
(exponent :
Scalar
) :
Signal
Source
sin
Source
sqrt
Source
to_json
(json :
JSON::Builder
) :
Nil
Source
value
Source