Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #2.2 color blending
- #Red 0 0
- #Orange 20 30
- #Yellow 40 60
- #Emerald 80 120
- #Aqua 110 165
- #Blue 160 240
- #Purple 180 270
- #Magenta 200 300
- if hue>30
- if hue>60
- if hue>120
- if hue>165
- if hue>240
- if hue>270
- if hue>300
- colora==SKINCOLOR_MAGENTA
- colorb==SKINCOLOR_RED
- blendb==(hue-300)/6
- if hue%6>=3
- blendb==blendb+1
- else
- colora==SKINCOLOR_PURPLE
- colorb==SKINCOLOR_MAGENTA
- blendb==(hue-270)/3
- if hue%3>=2
- blendb==blendb+1
- else
- colora==SKINCOLOR_BLUE
- colorb==SKINCOLOR_PURPLE
- blendb==(hue-240)/3
- if hue%3>=2
- blendb==blendb+1
- else
- colora==SKINCOLOR_AQUA
- colorb==SKINCOLOR_BLUE
- blendb==(hue-165)*2/15
- if hue*2%15>=8
- blendb==blendb+1
- else
- colora==SKINCOLOR_EMERALD
- colorb==SKINCOLOR_AQUA
- blendb==(hue-120)*2/9
- if hue*2%9>=5
- blendb==blendb+1
- else
- colora==SKINCOLOR_YELLOW
- colorb==SKINCOLOR_EMERALD
- blendb==(hue-60)/6
- if hue%6>=3
- blendb==blendb+1
- else
- colora==SKINCOLOR_ORANGE
- colorb==SKINCOLOR_YELLOW
- blendb==(hue-30)/3
- if hue%3>=2
- blendb==blendb+1
- else
- colora==SKINCOLOR_RED
- colorb==SKINCOLOR_ORANGE
- blendb==hue/3
- if hue%3>=2
- blendb==blendb+1
Advertisement
Add Comment
Please, Sign In to add comment