Started work on the gradiation rectangle.

The handling in the operation engine should work pretty well. I would like to do some changes, however (displaying the bottomright of the rectangle, and use XOR for the vector, for example)
Now, i have to do the real thing, the gradiation calculation and drawing. But let's see that tomorrow...


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@299 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2008-10-21 19:57:25 +00:00
parent 320eb547cd
commit dc9e10c054
9 changed files with 264 additions and 6 deletions

13
init.c
View File

@@ -669,9 +669,9 @@ void Initialisation_des_boutons(void)
85,1,
15,15,
FORME_BOUTON_TRIANGLE_HAUT_GAUCHE,
Message_Non_disponible,Message_Non_disponible,
Bouton_Rectangle_degrade,Bouton_Rectangle_degrade,
Rien_du_tout,
FAMILLE_INSTANTANE);
FAMILLE_OUTIL);
/*
Initialiser_bouton(BOUTON_GRADRECT,
85,1,
@@ -1259,6 +1259,15 @@ void Initialisation_des_operations(void)
Initialiser_operation(OPERATION_ELLIPSE_DEGRADEE,2,8,
Ellipse_degradee_12_8,1);
Initialiser_operation(OPERATION_RECTANGLE_DEGRADE,1,0,Rectangle_Degrade_12_0,0);
Initialiser_operation(OPERATION_RECTANGLE_DEGRADE,1,5,Rectangle_Degrade_12_5,0);
Initialiser_operation(OPERATION_RECTANGLE_DEGRADE,0,5,Rectangle_Degrade_0_5,1);
Initialiser_operation(OPERATION_RECTANGLE_DEGRADE,0,7,Rectangle_Degrade_0_7,0);
Initialiser_operation(OPERATION_RECTANGLE_DEGRADE,1,7,Rectangle_Degrade_12_7,1);
Initialiser_operation(OPERATION_RECTANGLE_DEGRADE,1,9,Rectangle_Degrade_12_9,0);
Initialiser_operation(OPERATION_RECTANGLE_DEGRADE,0,9,Rectangle_Degrade_0_9,1);
Initialiser_operation(OPERATION_LIGNES_CENTREES,1,0,
Lignes_centrees_12_0,1);
Initialiser_operation(OPERATION_LIGNES_CENTREES,2,0,