Post: [SCRIPT] Easier way to change colors
09-06-2012, 12:40 PM #1
TOM DAINTY
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); I know some of you may find this pointless, but I find it quite useful + It's less functions.

    
colorRGB( Elem, RGB )
{
Elem.color = RGB;
}


I know you can just go "self.scrollbar.color = (1,1,0);" etc. but in this case you can thread it from one function instead of making constant ones for each color.
Thread it like this colorRBG( self.scrollbar, (0,0,1) );
Hope some people find this helpful Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following 4 users say thank you to TOM DAINTY for this useful post:

Harry, IVI40A3Fusionz, Simple-_-Modz, xRaW

The following 2 users groaned at TOM DAINTY for this awful post:

247Yamato, Taylor
09-06-2012, 03:56 PM #2
xRaW
xI2aW-
Every little helps. Could be useful for the space junkies but i guess its just an alternate method.
09-06-2012, 04:06 PM #3
Originally posted by Blazing247 View Post



I know you can just go "self.scrollbar.color = (1,1,0);"


Thread it like this colorRBG( self.scrollbar, (0,0,1) );


The first one uses less characters than the second one :derp:

The following 6 users say thank you to x_DaftVader_x for this useful post:

247Yamato, Choco, Correy, INSAN3LY_D34TH, Karoolus,
09-06-2012, 05:08 PM #4
Harry
Former Staff
As raw said, every little helps Winky Winky cool little thing, thanks :wub:
09-06-2012, 07:34 PM #5
Taylor
Former Black Knight.
Originally posted by Blazing247 View Post
I know some of you may find this pointless, but I find it quite useful + It's less functions.

    
colorRGB( Elem, RGB )
{
Elem.color = RGB;
}


I know you can just go "self.scrollbar.color = (1,1,0);" etc. but in this case you can thread it from one function instead of making constant ones for each color.
Thread it like this colorRBG( self.scrollbar, (0,0,1) );
Hope some people find this helpful Smile


Useless script is useless :carling:

The following user thanked Taylor for this useful post:

Simple-_-Modz
09-06-2012, 08:44 PM #6
Why include the element as an input? The element may aswell just thread it :yds:

The following user thanked nZxMikeeeyx for this useful post:

Simple-_-Modz
09-06-2012, 09:04 PM #7
Taylor
Former Black Knight.
Originally posted by nZxMikeeeyx View Post
Why include the element as an input? The element may aswell just thread it :yds:


you mean?

    
self.scrollbar colorRGB(color here);

The following user thanked Taylor for this useful post:

Simple-_-Modz
09-06-2012, 09:25 PM #8
yerp .

The following user thanked nZxMikeeeyx for this useful post:

Simple-_-Modz
09-06-2012, 10:12 PM #9
Originally posted by xYARDSALEx View Post
you mean?

Code:
self.scrollbar colorRGB(color here);


So you might as well just use

self.scrollbar.color= "whatever"
09-06-2012, 10:32 PM #10
Taylor
Former Black Knight.
Originally posted by The
So you might as well just use

self.scrollbar.color= "whatever"


yea, true, but in that say if your having a menu customization submenu, then you wud need a thread for each one

---------- Post added at 06:32 PM ---------- Previous post was at 06:32 PM ----------

Originally posted by nZxMikeeeyx View Post
yerp .


:yuno: click quote reply.

The following user thanked Taylor for this useful post:

Simple-_-Modz

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo