Just another WordPress.com site

Posts tagged ‘Colorful’

Chromomancy Update #11

Starting from the last paragraph of Red, there is now a level 7 with flowers.  They shoot bullets.  Now, after doing a bit of research, I discovered there were only a small number of flower species that shot pollen at stuff.  In general, they’re all of the Impatiens genus.  Now I am not a botanist, but the fact is, Impatiens sounds a lot like impatience, so why not make a hidden level to test the player’s patience?

And that’s exactly what level 8 is.  It is a secret level, deeply connected to the number 42.  And at it’s center will be the Monarch of Impatiens, Lizzie (because one of the most prominent flowers of Impatiens is called the Busy Lizzie).  Anyway, I made a small drawing for it that will be way harder than the lightbulb to code in graphics, but here is a prototype picture of our “Lizzie”.

And this here is the upside down Lizzie.  Don’t look at it too closely or Freud will begin to mess with your mind.

Our Lizzie has read of a legendary Yuuka Kazami, queen of flowers, and shoots pollen and summons flowers in basically the same way she would shoot bullets.

However, take note that our dot protagonist may not have to fight the great Lizzie at all if you use reason and patience when dealing with her.  Of course, if you don’t fight Lizzie, you probably will not be eligible to receive the item(s) she will drop.  Keep in mind though, that level 8, where Lizzie will reside is a secret level triggered by something involving the number 42.  This is not in any way at all related to the plot of the game, it’s just something on the side.

Also, just because I used red ink to draw it, does not mean that Lizzie will be red.  There are no screen shots yet, but the flowers currently change colors based on how much pollen they have.  Lizzie will also change colors.

Chromomancy Update #7 and Triforce

Triforce.

It is the golden item that is a recurring motif in Legend of Zelda games.  It consists of three golden triangles.  One represents power, one wisdom, and one courage. There are three gods associated with them, respectively, Din, Naryu, and Farore (separate entities but they’re all god in a sense).  They also have three associated colors, Red, Green, and Blue.  Now, a few of these ideas have been seen elsewhere.

Let’s start with the three gods, Din, Naryu, and Farore, who all created Earth as we know.  They are not equal to each other, but they are all equal to god.  Hmm.  Sounds a little like the Holy Trinity.  Without delving too deeply into religion, we can also see that this “3 different things, not equal to each other but to something else” is seen in the Sierpinski Triangle:

Each of the three subtriangles are not the same as the others, but they are all infinite and equal to the bigger triangle.  Fractals are awesome like that.  But that’s not important yet.  It’ll be important some time in the far future at which point I will point back to here and say yeah, I already said fractals are awesome, because at that point I’ll be writing about something totally different.  I love breaking the fourth wall.

Now, also in the triforce are the colors Red, Green, and Blue.  This, as we know, are the additive primary colors.  There are only 3 primary colors, because color is a 3-dimensional thing.  Another way to express color in 3 dimension is hue, saturation, and brightness.  But that is digressing.

And lastly of the triforce observations are that each piece is symbolic of power, wisdom, and courage.  The triforce itself is in perfect balance.  So we get Red for Power, Blue for Wisdom (Chromomancy Update #6), and Green for Courage.  A combination would be red+blue=magenta or purple.  Purple is power and wisdom without courage.  Who has power, is educated, but is usually a coward?  Kings and nobles!  And that, folks, is why purple is the color of royalty.

Triangles are very versatile indeed.  An infinity of combinations can be made, because from three points are defined a plane.  Triangles can be defined just by 3 side-lengths.  Other polygons need angles too.  They have what mathematicians and physicists call degrees of freedom.  Triangles have no degrees of freedom.  They are oppressed shapes.  They are rigid.  They are soldiers (Flatland reference, right there).

Triangle in greek is also delta.  Delta means change.  Triangles bring about change.  Because triangles are the strongest shape to bring about change with.  Bermuda is right-on with their triangular-shaped change (aha it’s a pun!).

So, to summarize, triangles are powerful.  So when we take one, and spin it, that saying to the power “You’re not powerful at all.  Look at me spinning you.”  It is subversion, that’s what it is.  Nobody likes to be under power.  They want to subvert it.  So, level 1 of Chromomancy involves a spinning triangle just to set the record straight.  This is a game about freedom, not oppression.  Let the triangle spin!

This was a rather simple change from Update #6.  Steps are:

1. Shoot red, green, and blue simultaneously.

2. Set plasma target to screen center.

3. Add 3 dots named Red, Green, and Blue.

4. Make Red red, Green green, and Blue blue.

5. Make Red shoot red, Green shoot green, and Blue shoot blue.

6. Make them form an equilateral triangle.

7. Make them move in a circle at a constant rate so the equilarity of the triangle is preserved.

8. Add a big “CHROMOMANCY” to the front, in white text.

9. Undamp the density of the plasma, so color is persistent.

10. Make invisible walls one gridblock away from the real walls so fewer physics upsets occur.

11. Remark that it looks like a storm, and theres a Triforce.

12. Find Legend of Zelda music with storm in title (based on friend’s suggestion).

13. Add music.

Also, this is a few days after the video was made, now there are levels.  Those will be talked about later, once a suitable title is found.

Chromomancy Update #6 and Blue

Blue.

Water, ice, sky.  Really really hot stars.  Ink.  The background color of the iTunes, Skype, and Open Office Icons.

Let’s limit ourselves to Earthen nature.  In fact, let’s start inland at temperate climate.  The only blue here is the sky.  Now why would you be taking the time to look at the sky?  YOU NEED TO HUNT PREY AND LIVE.  Looking at the sky just isn’t practical.  If we are on our back, it’s either because a predator just knocked us down and the sky is our last vision, and in this case, you won’t be living to tell of what the sky looks like, or it’s because you’ve got a plentiful reserve of prey because you’re a hunter/gatherer and now you’re bored to tears (oh hey, tears are also blueish).  Let’s take the latter.

You’ve got all the food you need.  Now you just want to sleep.  Turn on your back, look at the blue blue sky.  Now, let’s say an idea hits you now.  BAM.  Let’s build houses and shelter and let’s GMO the crops to make them more tasty to eat!  Whoa!  What in the world could have inspired THAT idea?  Well, since I was looking at the sky, obviously that’s what did it.  Hey!  Maybe it’s because of the color of the sky!  It’s blue!  Blue is such an awesome color!  Let’s all turn on our backs and stare at the sky like a…. like a… like that beetle we flipped on it’s back and it can’t get up!

And that is the first record in recorded history of the color blue having a creative impact on human minds.  But it didn’t stop there.  Eventually, the hunters/gatherers moved around and found themselves at a border between land and sea.  For the first time, they saw… water!  Okay, maybe they saw it a few other times at lakes and whatnot, but those were landlocked waters.  Even rivers, you could see the other side.  But imagine thinking that all water was surrounded by land, then seeing an ocean!  Your mind just turned upside down!  I thought land surrounded water!  Are you telling me water surrounds land???  Are you telling me that most of the world is uninhabitable?  Nonsense!  The world was made for people!

[Person dives into ocean]

Oh nononono I’m drowning drowning, help mehelpmehelpmehelpme!

“Wait, I’ll save you!”

[Another person dives into ocean]

Ahhhh noo, now we’re both drowning!

A few more people jumped in after, to try to save those already in.  Eventually, there were like 500 people drowning, and on the beach was a man named Poseiden.  And like the others, he too, was not too bright and he jumped in.  But then, an idea sprung in his mind to pretend he was on a bicycle (he was a little loony too).  Nonetheless, he managed to stay afloat, and was the first human to learn how to swim.  How does this relate to Blue?  I wonder who Poseiden attributed his insight to?  It certainly wasn’t the yellow-sanded beach.  Duuuude, Poseiden, how did you float on the water?  Oh, I was just staring at the Blue, and an insight hit me.  Duuuude, we should call you God of Water!  They did.

Then you’ve got the Vikings who discovered Ice(land).  And the icy place was where dead souls had to go, until they found their inner strength to locate the great dinner table of Odin.  The blue color of the ice was supposed to help bring insight.

There are many other examples in human history about how blue became associated with guidance and wisdom.  So now, that feeling is ingrained in everything.  Pen ink is blue because it helps people think.  Wordpress Publish button is blue to help me write.  Deep Blue is blue to help it play chess better.  Big Blue is blue to help is develop better computers.  Even Veins.  Veins are blue too (not really, just play along).  Veins are what the red blood cells travel across to get to their oxygen (after passing the heart, they’re sent to the lungs. Except connecting the heart and lungs are arteries, not veins, but just play along).  Veins are how the RBCs get their oxygen to function!  If they couldn’t get oxygen, we couldn’t get oxygen, and we couldn’t think.  Veins are what allow us to think!  Blue is the force of creativity and thinking and wisdom!  It an amazing color!

Now that thats over with, Chromomancy Update #6.

Starting with the video in Update #5…

1. Separate Red, Green, and Blue.

2. Allow the jets to rotate.

3. Allow the source to move.

4. Add a square to tell where the source and jets are (and give user control over movement and whether or not the jet is firing).

5. Add some blinking particles whose velocities are affected by the plasma.

6. Remove Red and Green.

7. Remove User Control.

8. Force Square to move like a circle.

9. Shoot Blue Plasma continuously.

10. Create a blinking particle every radian of movement.

11. Do a lyrics search on a song with the word Sparkle and Sky.

12. Ignore everything not from the 80s.

13. Pick song, and attach to video.

And after those simple 13 steps, we get this nice little animation:

Chromomancy Update #5 and Spirals

Many beings react in strange ways to spirals.  On youtube, many videos may be found, claiming to use spirals as a means of hypnosis.  Once taught how to flush a toilet, a cat will never cease doing so, just to see the water spiral down (maybe some other reason).  Worms and rolly pollys will even turn themselves into spirals as a coping mechanism for stress.  So it is not too difficult to see that spirals play important roles in culture and stuff.  But what exactly is  spiral?

Mathematician: A spiral is the graph you get when graphics r=theta in polar.

Geometer: A spiral is what you get when you take a compass and draw a continuous arc, and decreasing/increasing the radius at a constant rate.

Surgeon: A spiral is the shape of the semi-circular canals in the ear.

Meteorologist: A spiral is the shape of a hurricane.

Biologist: A spiral is the shape of a snail shell.

Botanist: A spiral is the shape of a pineapple spine.

Microbiologist: A spiral is the shape of DNA.

Cartoonist: A spiral is the shape of one’s eyes when overcome with disorientation.

Oceanographer: A spiral is the shape of a whirlpool.

Forensic Scientist: A spiral is a type of fingerprint.

Architect: A spiral is the shape of the end of a drill-bit or screw.

Hair Stylist: A spiral is a shape formed by curly hair.

Culinary Artist: A spiral is a shape formed by spaghetti.

Computer Graphic Person: A spiral is a shape that is congruent to itself when rotated by theta and dilated by n, where theta is not a multiple of 2pi and n is greater than 1.

Yes, the point is, different people have different definitions of what a spiral is. But we need a standard. One, single definition that can tell us if what we see is really a spiral. And let’s also talk about why nature loves spirals so much.
The mathematician definition is a pretty simple one. Just one equation, r=theta. When you really think about it, that’s pretty much the simplest equation ever, in polar coordinates. It’s like the y=x of… polar coordinates. That on its own makes it a pretty interesting thing to look at. Also take in the Celtic belief that life was like a spiral, and over the course of one’s stay on Earth, one moves along the spiral until having gone 360 degrees, and at that point, death comes, and this person will be in about the same place as birth, just on a different level. And the afterlife is just another circle, and death comes, and then comes another afterlife. Buddhism is also like this.
Speaking of spirals and new life, there are 3 arteries that are really really central to the creation of new life, and guess what? They’re all spiral-shaped.
That should be more than enough to convince the average person that spirals are awesome. So now, Chromomancy.
The physics part was finally fixed. So I decided to make a plasma stream at a corner, firing towards the center to see what happened. And cool stuff happened. Then I was like, “where one is good, 4 is better”. So I put a stream at each corner, all aiming at the middle, and was thinking, mushroom cloud, we will see mushroom clouds. So imagine my surprise when I double click Run, and saw this:

(Okay, not really a spiral, but still)

Spirals are everywhere. Spirals are awesome. Go read the manga Uzumaki. 20 Chapters about the horror of spirals. If you thought spirals were scary now, you haven’t seen what spirals can really do. Uzumaki. Go.

It doesn’t have anything to do with Naruto Uzumaki, except for that Naruto’s headband has a spiral on it.

Chromomancy Update #2

After adding about 5 lines of code, the frame rate (per second) went up from 7 to 2700.  This is a little bit too fast, but at least now there exists processing time for complicated shading algorithms.  So I made a few different shading algorithms.  I think I should stick with the original one (from Chromomancy Update #1) for now.

Weight assigned to each of  the 4 vertexes based on taxicab distance.  At least the shapes are easily visible here….

The first weighting algorithm I used in this project.  It’s not working any better.  Weights are assigned to each vertex based on the “real” distance (not taxicab) to the 4 square vertexes.

My favorite one.  You can actually see part of the jetstream here (the darkblue thing poointing right, inside of the aquamarine colored part).

The problem here is that the slopes at the corners for the shading approach infinity, so discontinuities are abound.  So I decided to try two different interpolation methods, to make the derivative a smaller value, say 0.

Utter failure.  I feel like I did something wrong coding this, but I’d rather put the blame on quadratic interpolation.  It’s not even the right color.  I have no idea where all the yellow came from.  And the top left corner just looks ugly.

Another failure.  Squares are easy to see.  Logistic interpolation failed.  The growth functions learned in calculus are not useful.  Better than the Quadratic one though.  And at least the jetstream is visible (the darkblue hook thingy).

So today’s progress…. well all that was really done was increasing the frame rate over 300-fold.

Tag Cloud