Class: MathGL::MglColor

Inherits:
Object
  • Object
show all
Defined in:
lib/mathgl/doc/libdoc_other_en.rb,
ext/mathgl/mathgl.cxx

Overview

Proxy of C++ MathGL::MglColor class

Instance Method Summary collapse

Instance Method Details

#*(b) ⇒ MglColor

Multiplies color by number.

Parameters:

  • b (Float)

Returns:



80
81
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 80

def *
end

#+(b) ⇒ MglColor

Adds colors by its RGB values.

Parameters:

Returns:



62
63
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 62

def +
end

#-(b) ⇒ MglColor

Subtracts colors by its RGB values.

Parameters:

Returns:



71
72
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 71

def -
end

#/(b) ⇒ MglColor

Divide color by number.

Parameters:

  • b (Float)

Returns:



89
90
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 89

def /
end

#normFloat

Gets maximal of spectral component.

Returns:

  • (Float)


53
54
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 53

def norm
end

#set(p, bright = 1) ⇒ nil

Sets color from symbolic id.

Parameters:

  • p (String)
  • bright (Float) (defaults to: 1)

    default=1

Returns:

  • (nil)


17
18
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 17

def set
end

#validbool

Checks correctness of the color.

Returns:

  • (bool)


45
46
# File 'lib/mathgl/doc/libdoc_other_en.rb', line 45

def valid
end