module D3 class Color include D3::Native attr_reader :native aliases_native_new %i[brighter darker] alias_native :displayable?, :displayable alias_native :to_s, :toString # Various subsets of these are valid depending on color - maybe we should properly subclass? def a; `#@native.a` end def b; `#@native.b` end def c; `#@native.c` end def g; `#@native.g` end def h; `#@native.h` end def l; `#@native.l` end def r; `#@native.r` end def s; `#@native.s` end def opacity; `#@native.opacity` end end class <