[SOLVED] How to make a color darker
#1

Hi,
Like in the subject.. How can I make a color two times darker? I know I can use 2 different colors but I just want to use this color: 0x7DFF00FF

Examples:
This is the starting color.
This will be the output.
Reply
#2

Got it.

pawn Code:
#if !defined MakeColorDark
#define MakeColorDark(%0) \
    (%0 & 0xFFFFFF00) | (0x66 & ((%0 & 0x000000FF) / 3))
#endif
Problem solved.
Reply
#3

Why don't you name this 1 acordily so if someone did want to find out they could see the title?
Reply
#4

Quote:
Originally Posted by Jackster
Why don't you name this 1 acordily so if someone did want to find out they could see the title?
True.
Done..
Reply
#5

Thanks
Reply
#6

Ryder Gel Pawn Цgreteyim

English

Come Pawn Ryder Teaching
Reply
#7

Quote:
Originally Posted by [PWN
CфDйR™ ]
Ryder Gel Pawn Цgreteyim

English

Come Pawn Ryder Teaching
lol, gtfo.. What are you trying to say?
Reply
#8

Quote:
Originally Posted by RyDeR`
View Post
Got it.

pawn Code:
#if !defined MakeColorDark
#define MakeColorDark(%0) \
    (%0 & 0xFFFFFF00) | (0x66 & ((%0 & 0x000000FF) / 3))
#endif
Problem solved.
anyway we can edit this to make a color lighter?
Reply
#9

Quote:
Originally Posted by Jonny5
View Post
anyway we can edit this to make a color lighter?
Why the fuck did you bump a 2 YEAR old topic?
Reply
#10

Quote:
Originally Posted by [FU]Victious
View Post
Why the fuck did you bump a 2 YEAR old topic?
It's better than creating a new thread on the same subject.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)