path = "D:\\Data\\site\\images\\"; TitleY = 80; BlurR = 2.5; BlurDouble = BlurR * 2; function DoText(Str, File) { newpath(t); font("verdana", 38, ""); Ascent = fontascent(); text(t, BlurDouble, Ascent + BlurR, Str); Tx = pathwidth(t); Ty = pathheight(t); create(Tx + BlurDouble, Ty + BlurDouble, 32); rgba(0x80, 0x80, 0x80, 0x80); fillpath(t); blur(BlurR); lineargradient(0, 0 - Ascent, 0, Ty - Ascent); addstop(0, 0x30, 0x34, 0x60, 0xff); addstop(1, 0x70, 0x74, 0xc0, 0xff); newpath(p); fillpath(t); save(path + File, "transparent=0"); } create(16, TitleY, 32); lineargradient(0, 0, 0, TitleY); addstop(0, 0xf8, 0xf8, 0xff, 0xff); addstop(0.6, 0xf8, 0xf8, 0xff, 0xff); addstop(0.8, 0xec, 0xec, 0xf5, 0xff); addstop(1, 0xe0, 0xe0, 0xf0, 0xff); newpath(p); rect(p, 0, 0, 16, TitleY); fillpath(p); save(path + "title-grad.png", "transparent=0"); DoText("MemeCode", "title-index.png"); DoText("Blog", "title-blog.png"); DoText("Forums", "title-forums.png"); DoText("Account", "title-account.png"); DoText("FAQ", "title-faq.png"); DoText("Links", "title-links.png"); create(16, 32, 32); lineargradient(0, 0, 0, 32); addstop(0.4, 0xff, 0xff, 0xff, 0xff); addstop(0.7, 0xf0, 0xf0, 0xff, 0xff); addstop(1, 0xe0, 0xe0, 0xff, 0xff); newpath(p); rect(p, 0, 0, 16, 32); fillpath(p); save(path + "h2-grad.png", "transparent=0"); create(96, 20, 32); rgb(0xa0, 0xa0, 0xc0); newpath(b); roundrect(b, 0, 0, 96, 20, 10); fillpath(b); newpath(b); roundrect(b, 1, 1, 95, 19, 9); lineargradient(0, 0, 0, 18); addstop(0, 0xff, 0xff, 0xff, 0xff); addstop(1, 0xc0, 0xc0, 0xe0, 0xff); fillpath(b); save(path + "btn.png", "transparent=0");