-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
21 changed files
with
310 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
-371 Bytes
(99%)
Build/Components/4DPop ColorChart.4dbase/4DPop ColorChart.4DZ
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
Build/Components/4DPop ColorChart.4dbase/Libraries/lib4d-arm64.dylib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Build/Components/4DPop ColorChart.4dbase/Resources/InfoPlist.strings
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"$comment": "The project file let you override the location for most folders", | ||
"compatibilityVersion": 1830, | ||
"$4DPopAppMakerToolVersion": "20R6" | ||
"$4DPopAppMakerToolVersion": "20R7" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,74 @@ | ||
//%attributes = {"invisible":true} | ||
//$Color:=Color_HSL_to_RGB (->$Hue;->$Saturation;->$Light) | ||
// $Color:=Color_HSL_to_RGB (->$Hue;->$Saturation;->$Light) | ||
|
||
C_LONGINT:C283($1;$2;$3) | ||
C_LONGINT:C283($0) | ||
var $1; $2; $3 : Integer | ||
var $0 : Integer | ||
|
||
C_LONGINT:C283($Hue;$Saturation;$Luminosity) | ||
C_LONGINT:C283($Red;$Green;$Blue) | ||
C_LONGINT:C283($Min;$Max;$Delta) | ||
var $Hue; $Saturation; $Luminosity : Integer | ||
var $Red; $Green; $Blue : Integer | ||
var $Min; $Max; $Delta : Integer | ||
|
||
$Hue:=$1%360 // 0 à 360° | ||
$Saturation:=$2 // 0 à 100% | ||
$Luminosity:=$3 // 0 à 100% | ||
|
||
$Hue:=$1%360 //0 à 360° | ||
$Saturation:=$2 //0 à 100% | ||
$Luminosity:=$3 //0 à 100% | ||
|
||
$Max:=$Luminosity*255/100 //RGB vont de 0 à 255 | ||
$Max:=$Luminosity*255/100 // RGB vont de 0 à 255 | ||
$Min:=$Max*((100-$Saturation)/100) | ||
$Delta:=$Max-$Min | ||
|
||
Case of | ||
|
||
//┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ | ||
: ($Hue>=300) | ||
|
||
$Hue:=$Hue-300 | ||
$Red:=$Max | ||
$Green:=$Min | ||
$Blue:=$Max-($Delta*($Hue/60)) //Bleu décroissant | ||
$Blue:=$Max-($Delta*($Hue/60)) // Bleu décroissant | ||
|
||
//┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ | ||
: ($Hue>=240) | ||
|
||
$Hue:=$Hue-240 | ||
$Blue:=$Max | ||
$Green:=$Min | ||
$Red:=$Min+($Delta*($Hue/60)) //Rouge croissant | ||
$Red:=$Min+($Delta*($Hue/60)) // Rouge croissant | ||
|
||
//┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ | ||
: ($Hue>=180) | ||
|
||
$Hue:=$Hue-180 | ||
$Blue:=$Max | ||
$Red:=$Min | ||
$Green:=$Max-($Delta*($Hue/60)) //Vert décroissant | ||
$Green:=$Max-($Delta*($Hue/60)) // Vert décroissant | ||
|
||
//┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ | ||
: ($Hue>=120) | ||
|
||
$Hue:=$Hue-120 | ||
$Green:=$Max | ||
$Red:=$Min | ||
$Blue:=$Min+($Delta*($Hue/60)) //bleu croissant | ||
$Blue:=$Min+($Delta*($Hue/60)) // Bleu croissant | ||
|
||
//┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ | ||
: ($Hue>=60) | ||
|
||
$Hue:=$Hue-60 | ||
$Green:=$Max | ||
$Blue:=$Min | ||
$Red:=$Max-($Delta*($Hue/60)) //Rouge décroissant | ||
$Red:=$Max-($Delta*($Hue/60)) // Rouge décroissant | ||
|
||
//┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ | ||
: ($Hue>=0) | ||
$Hue:=$Hue-0 //pour la symétrie des autres cas :-) | ||
|
||
$Hue:=$Hue-0 // Pour la symétrie des autres cas :-) | ||
$Red:=$Max | ||
$Blue:=$Min | ||
$Green:=$Min+($Delta*($Hue/60)) //vert croissant | ||
$Green:=$Min+($Delta*($Hue/60)) // Vert croissant | ||
|
||
//┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ | ||
End case | ||
|
||
$Color:=($red << 16)+($Green << 8)+$Blue | ||
|
||
$0:=$Color | ||
$0:=$Color |
Oops, something went wrong.