Brad Fitzpatrick (bradfitz) wrote in s2styles,
Brad Fitzpatrick
bradfitz
s2styles

Palimg textures

The following textures are available for all S2 programmers. We'll soon be using them in a lot of the system styles, and adding a new "Colorized texture widget" to the S2 /customize/ wizards.

The filenames (all under the "textures/" directory) are:

brushed_metal.png
burlap.png
camouflage.png
canvas.png
chalk.png
cork.png
fibers.png
floral.png
ice.png
manila.png
marble.png
paper.png
ridge.png
rough.png
stucco.png
terracotta.png
type.png
wavy.png

So for instance in S2 you'd do:

var my_background = palimg_tint("textures/wavy.png", $*bg_color);

and if your $*bg_color property was, say, green (00c000), it'd make the following URL:

http://www.livejournal.com/palimg/textures/wavy.png/pt00c000



So you essentially now have access to 16.7 million colors * 18 textures. That's a lot of combinations.

Here's fibers.png, w/ #c0f0c0


Orange marble:


Props to jproulx for all his work on getting this together.

Enjoy!
Subscribe

  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 16 comments