Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides an abstraction over the default representations of color in the Haskell OpenGL bindings.
Documentation
bindColor :: Color -> IO () Source
Changes the current OpenGL context's rendering color to the
specified.Color
color4i :: Int -> Int -> Int -> Int -> Color Source
Creating a
from 4 Color
s. The ints, similarly to Int
represent red, green, blue, and the alpha mask respectively. The ints should
be in the range of 0-255. (Note: color4f
is functionally equivalent (and
also equivalent in source code) to calling color4f with each of its arguments
divided by 255.)color4i