Method: Ray::Color#r

Defined in:
ext/color.c

#rInteger Also known as: red

Returns Red intensity.

Returns:

  • (Integer)

    Red intensity.



65
66
67
68
69
70
71
# File 'ext/color.c', line 65

static
VALUE ray_color_r(VALUE self) {
  say_color *ret;
  Data_Get_Struct(self, say_color, ret);

  return INT2FIX(ret->r);
}