1Image.makeColour(3kaya)      Kaya module reference     Image.makeColour(3kaya)
2
3
4

NAME

6       Image::makeColour - Allocate a colour.
7

SYNOPSIS

9       Colour makeColour( Image img, Int r, Int g, Int b, Int a=0 )
10

ARGUMENTS

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

DESCRIPTION

24       Allocate the specified colour for use in the image.
25

AUTHORS

27       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
28       (kaya@kayalang.org). For further information see http://kayalang.org/
29

LICENSE

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)
Impressum