rgb to rgba for runtime

For developers using the Construct 2 Javascript SDK

Post » Thu Feb 23, 2012 9:20 pm

How can i convert rgb(0,0,0) to rgba (0,0,0,0) in runtime.js ?
I get rgb from edittime color picker and want to transfer it to runtimes rgba format. Been trying to use var.replace but i'm not able to do that... and it's a last thing to do befor i finished my plugin.

Ohh, i never used javascript before. Today, for the first time I managed to gather myself and do something in javascript.
ImageImageImageImage
B
141
S
58
G
37
Posts: 2,549
Reputation: 31,736

Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests