update
This commit is contained in:
@@ -6,11 +6,3 @@ lightness.o : lightness.c lightness.h
|
||||
|
||||
carre.o : carre.c lightness.h
|
||||
gcc -ansi -pedantic -c carre.c
|
||||
|
||||
### REGLES ESSENTIELLES ###
|
||||
|
||||
but : carre
|
||||
|
||||
### REGLES OPTIONELLES ###
|
||||
run : but
|
||||
./carre
|
@@ -4,14 +4,15 @@
|
||||
|
||||
#include "lightness.h"
|
||||
|
||||
#define LIGHT 0
|
||||
#define DARK 1
|
||||
#define RED 1
|
||||
#define GREEN 2
|
||||
#define BLUE 4
|
||||
#define DARK_RED 124
|
||||
#define DARK_GREEN 34
|
||||
#define DARK_BLUE 19
|
||||
#define LIGHT_RED 217
|
||||
#define LIGHT_GREEN 157
|
||||
#define LIGHT_BLUE 147
|
||||
|
||||
int hue(void) {
|
||||
int choice = rand()%3;
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "lightness.h"
|
||||
|
||||
int lightness(void) {
|
||||
|
@@ -3,9 +3,6 @@
|
||||
|
||||
#define LIGHT 0
|
||||
#define DARK 1
|
||||
#define LIGHT_RED 217
|
||||
#define LIGHT_GREEN 157
|
||||
#define LIGHT_BLUE 147
|
||||
|
||||
int lightness(void);
|
||||
|
||||
|
Reference in New Issue
Block a user