Computer Science Canada Blood Splattering |
Author: | do_pete [ Fri Nov 04, 2005 11:11 am ] | ||
Post subject: | Blood Splattering | ||
I was bored so i made this little program of blood splattering aginst a wall and dripping off.
|
Author: | codemage [ Fri Nov 04, 2005 1:30 pm ] |
Post subject: | |
Morbidilicious / Goretastic. I'm good with that as long as your imagination confines itself to the virtual world. :/ |
Author: | Flikerator [ Sat Nov 12, 2005 4:44 pm ] |
Post subject: | |
Very nice = ) To codemage:...its not like its a movie with someone being ripped apart or something, its a blood splater program. Hardly "Morbidilicious or Goretastic." |
Author: | ZeroPaladn [ Mon Nov 14, 2005 9:41 am ] |
Post subject: | |
i thought my blood animation was good (http://www.compsci.ca/v2/viewtopic.php?t=9900) very nice, as if someone was shot in the face . Keep them coming Do! |
Author: | do_pete [ Mon Nov 14, 2005 11:56 am ] |
Post subject: | |
you can screw around with the colour to make it look like a paint ball being shot at the wall |
Author: | ZeroPaladn [ Mon Nov 14, 2005 1:53 pm ] |
Post subject: | |
im no good at RBG coloring, how do you change the colours using RBG? |
Author: | jamonathin [ Mon Nov 14, 2005 2:37 pm ] | ||||||
Post subject: | |||||||
What you can do with RGB is change the shade of whatever color you have. You can add new colors by using RGB.AddColor (red,green,blue) where the highest value of the red, green, blue can be 1, lowest being 0. You use decimals to represent the amount of color used. So to get a full red color, you would use
If you were to drop the 1 to .5, the red would get darker (the lower the darker). So basically . . RGB.AddColor(0, 0, 0) would be black RGB.AddColor(1, 1, 1) would be white Then you can use for loops to make the fade look nice. Here's an example.
You can put that into the green or blue section and it would pull of the same effect. Or what you could do is get the R, G and B values of a color, where you need 3 'real' variables and a color. Now you could insert a color number (such as 10 for brightgreen) or you could use whatdotcolor to pick up a color from the screen. So you would call: RGB.GetColor(colorID,r :real,g :real, b:real) which would give the RGB values to r, g and b. Here's an example. It produces a random background then gets the rgb values of it.
Note: If you use whatdotcolor to pick up colors other than the ones in Turing, you wont be able to reproduce that color because whatdotcolor picks up the nearest color in Turing, to the one you told it to grab. |
Author: | do_pete [ Mon Nov 14, 2005 2:45 pm ] | ||||||
Post subject: | |||||||
RGB stands for Red, Green, and Blue so in order to change the colour you would change the postion of
And if you want an other shade of colour you can change the value of 0.0 to somwthing below 1.0. For example this would make the colour yellow
|
Author: | ZeroPaladn [ Tue Nov 15, 2005 9:30 am ] |
Post subject: | |
woo! thanks jamonathin, do_pete. i understand now. |
Author: | sylvester-27 [ Wed Nov 16, 2005 12:48 pm ] |
Post subject: | cool |
its pretty cool but it would be cooler if u added a pic of a stickman getting shot then have the blood splat |