MCPcopy Create free account
hub / github.com/SiegeLord/RustGnuplot / floats_to_argb

Function floats_to_argb

gnuplot/src/color.rs:281–289  ·  view source on GitHub ↗

Converts a set of `f64` red, green and blue values in the range `0 <= x <= 1` to a 3-tuple of `u8` suitable for use as an [ARGBInteger] Returns an error String if any of the arguments are not in the range `0 <= x <= 1` Ses also [floats_to_rgb] # Arguments a - alpha (transparency) value. 0: completely opaque, 1: completely transparent. r - red. 0: no red, 1: fully red g - green. 0: no green, 1:

(a: f64, r: f64, g: f64, b: f64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

try_fromMethod · 0.85

Calls 1

float_color_to_intFunction · 0.85

Tested by

no test coverage detected