1Image.makeColour(3kaya) Kaya module reference Image.makeColour(3kaya)
2
3
4
6 Image::makeColour - Allocate a colour.
7
9 Colour makeColour( Image img, Int r, Int g, Int b, Int a=0 )
10
12 img The image
13
14 r The red channel (0..255)
15
16 g The green channel (0..255)
17
18 b The blue channel (0..255)
19
20 a The alpha channel (0..127). 127 represents full transparency. This
21 argument may be omitted for a default of 0 (fully opaque)
22
24 Allocate the specified colour for use in the image.
25
27 Kaya standard library by Edwin Brady, Chris Morris and others
28 (kaya@kayalang.org). For further information see http://kayalang.org/
29
31 The Kaya standard library is free software; you can redistribute it
32 and/or modify it under the terms of the GNU Lesser General Public
33 License (version 2.1 or any later version) as published by the Free
34 Software Foundation.
35
36
37
38Kaya December 2010 Image.makeColour(3kaya)