Skip to content

Instantly share code, notes, and snippets.

@DanBradbury
Created July 20, 2014 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanBradbury/b15a99914311fa48ad39 to your computer and use it in GitHub Desktop.
Save DanBradbury/b15a99914311fa48ad39 to your computer and use it in GitHub Desktop.
Notes EP1
![](http://i.imgur.com/zhS4Oah.png)
```
CURRENT_COLOR = c_red;
COLORS[0] = c_aqua;
COLORS[1] = c_fuchsia;
COLORS[2] = c_red;
COLORS[3] = c_lime;
RATIO = 1;
```
![](http://i.imgur.com/ZuiP6J1.png)
```
if(mouse_check_button_pressed(mb_left)) {
index = random_range(0,4);
CURRENT_COLOR = COLORS[index]
}else if(keyboard_check_pressed(vk_up)) {
RATIO *= 1.1;
}else if(keyboard_check_pressed(vk_down)) {
RATIO *= 0.9;
}
```
![](http://i.imgur.com/R3eInBt.png)
```
draw_set_color(CURRENT_COLOR);
draw_text_transformed(x,y,"Hello World", RATIO, RATIO, 0);
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment