|
![](/i/fill.gif) |
I'm working on a US Flag texture. I've been able to get 48 stars using a repeat
warp and a macro Chris Colefax offered some time back for a star texture
(sorry... can't find the post).
Any ideas on how to get the 50 stars in the 5 6's, 4 5's pattern? I've included
my repeat statement for reference.
Stars should look like:
* * * * * *
* * * * *
* * * * * *
* * * * *
* * * * * *
* * * * *
* * * * * *
* * * * *
* * * * * *
Repeat warp currently used:
#declare OldGloryBlue = rgb <0,40,104> / 255;
#declare P_USAStars =
pigment
{
star_pigment(5, 40, pigment_map
{
[0 OldGloryBlue]
[0.00001 White]
})
translate <1,1,0>
warp { repeat x * 3 }
warp { repeat y * 2.75 }
scale StarDia / 2
translate 6 * Stripe * y + <0.5,0.4,0> * StarDia
}
This isn't terribly accurate, but it works. For 48 stars. And I need 50 :-)
BTW, there is a black border around the flag and between the stripes and around
the union. This will be adjustable in the final pattern.
Thanks all,
Michael
--
#macro M(D,J)text{ttf"cyrvetic.ttf"D 1,0translate-J}#end#macro N(E,K)#local A=
M(E,K)light_source{-z*30rgb 1projected_through{A}}#end N("Michael"<1.6,-.2,5>)
N("Johnson"<1.9.8,5>)sphere{z*9,4pigment{gradient x+y scale 10color_map{[0 rgb
x][1rgb x+y]}sine_wave}} // (c)2001 Michael D Johnson red### [at] wv adelphia net
Post a reply to this message
Attachments:
Download 'flagtexture.jpg' (30 KB)
Preview of image 'flagtexture.jpg'
![flagtexture.jpg](/povray.binaries.images/attachment/%3C3be62945%40news.povray.org%3E/flagtexture.jpg?preview=1)
|
![](/i/fill.gif) |