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
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests