Thread: ARGB
View Single Post
Old 08-05-2008, 02:29 PM   #3
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)

Default

Collapse JASS:
    static method create takes integer a, integer r, integer g, integer b returns ARGB
        return ARGB(b + g*0x100 + r*0x10000 + a*0x1000000)
    endmethod
Rofl, nice struct abuse.

By double naming you mean having same name for library and struct?
What is wrong with that?
I mean what would be the alternative, to declare a generator global variable LIBRARY_NAME to be used instead?

SCOPE_PREFIX--
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.
cohadar is offline   Reply With Quote