![]() ![]() This is the same colour as shown in the previous code block, only the RR and BB values are swapped to match the format. drawbutton (x1,y1,x2,y2,up) Draws a button, up indicates whether up (1) or down (0). size indicates the size of the arrow in pixels. drawarrow (x1,y1,x2,y2,size) Draws an arrow from (x1,y1) to (x2,y2). This is also used for drawing ellipses and rounded rectangles. This uses a Red/ Green/ Blue format (or #RRGGBB) which is more widely used and is compatible with various other applications. The precision must lie between 4 and 64 and must be dividable by 4. You can also use "CSS colours" that begin with a hash/pound sign ( #). ![]() Here, FF is the blue component, CC is the green component and 11 is the red component. The hexadecimal value for a colour is split into three parts, with the format being: Blue/ Green/ Red (or $BBGGRR), so, for example, to define a light blue/aqua colour you could use: You can create colours from hexadecimal values using the $ symbol beforehand, and these values can also be used with various colour functions to get component values separately. GAMEMAKER DOCS2 GET HUE MANUALThere are also a number of constants that can be used as base colours in these (and other) functions: Colour Welcome to the GameMaker user manual This document is divided into three parts with the aim of getting you introduced to the interface and basic workings of. Using these functions you can separate colours into their component parts, create new colours and manipulate the draw alpha to change how different things in your game are drawn together.įor blending images using special blend modes and other GPU specific functions, see the section on the GPU Control. ![]() GameMaker has a comprehensive selection of functions to manipulate the colour and alpha of what is drawn on the screen. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |