Method: Ray::Color#r=

Defined in:
ext/color.c

#r=(val) ⇒ Object Also known as: red=

Sets the red intensity

Parameters:

  • The (Integer)

    new red intensity.



105
106
107
108
109
110
111
112
113
114
# File 'ext/color.c', line 105

static
VALUE ray_color_set_r(VALUE self, VALUE val) {
  rb_check_frozen(self);

  say_color *ret;
  Data_Get_Struct(self, say_color, ret);

  ret->r = ray_color_clamp(NUM2INT(val));
  return val;
}