Color setup + Doc update

This commit is contained in:
blz
2026-03-08 04:13:03 +01:00
parent b47ad96af2
commit b72b63e057
2 changed files with 102 additions and 20 deletions

View File

@@ -47,16 +47,45 @@ $ ./sdl-glisseur_10
$ top (or ps ax) ---> get PID of the glider proccess
$ kill -9 PID
```
or try to CTRL+C many times
or try many times to close window
- - - - - - -
# Adjust image size
Update WIDTH and HEIGHT on lines 36 and 37
Update WIDTH and HEIGHT on
```
// Canvas height and width //
#define WIDTH 640
#define HEIGHT 480
```
- - - - - - -
# Set up the 4 colors
```
// Canvas height and width //
#define WIDTH 640
#define HEIGHT 480
```
- - - - - - -
# Set up the 4 colors
```
// 4 colors definition //
#define COLOR_0_R 254
#define COLOR_0_G 254
#define COLOR_0_B 254
#define COLOR_1_R 254
#define COLOR_1_G 0
#define COLOR_1_B 0
#define COLOR_2_R 0
#define COLOR_2_G 254
#define COLOR_2_B 0
#define COLOR_3_R 0
#define COLOR_3_G 0
#define COLOR_3_B 254
```
- - - - - - -
# Change glider moving rules
Update the direction adding parameters, check examples from line 158 to line 205