Just another WordPress.com site

Archive for June, 2012

Lightbulb Drawing

This is what a real lightbulb looks like:

This is the hand-drawing I made (the stuff to the side are the mathematical stuff to extract the geometric constants).  The picture is a little grainy, because, like all the other drawings,this was taken by webcam.

And this, is the actual computer version of my geometric interpretation of the silhouette of a lightbulb.  Ignore the dot.  And the line below the lightbulb is the wire supplying the electricity.  It’s technically a part of the lightbulb apparatus.


And now, you can make lightbulbs too!  All you need is a JFrame that paints a full black screen, then copy-paste this code in front of the black screen in your paint method, with the graphics object being called “g”.  This is java code, and will not work in a C program, or Python, or C++, or Pascal, or Whirl, or PHP, or Perl, or Assembly, or Befunge, or Basic.

for (int i=0;i<=6;i++) {
if (i!=3) {
for (int i=0;i<=3;i++) {


Chromomancy Update #9 and Grey

This update will be different.  This time, the Chromomancy part will come before the writing part.  Why?  Because.

So a previous video showed the first few levels.  There were enemy squares that could be killed.  When killed, they explode into shrapnel.  This shrapnel can be collected and offered to a Pylon which is where the last video ended.  This one:


So the Pylon is essentially a Console window.  Type text, hit enter.  It’s automatically more or less centered.  It looks a bit like this:

Except the A’s dont mean anything.  This is just a Spade of A’s that looks cool.  The real screenshot of the Pylon looks like this:

The stuff the user types can be distinguished from the output because the input is a verb or a command and the output is a statement.  So if you type HELP, then you get that big block of text.  Typing OFFER 2 GREENS converts 2 of the green shrapnel into energy.  Light energy is very important to have.  Because without light energy, you will lose all your color and dissolve into the background.  I’d make a video, except that would take too long.  Imagine a square of some color, dimming over the course of 30 seconds, before turning black.

If you offer enough shrapnel, you can prevent the darkness from taking over your soul, but you’ll slowly turn gray over time regardless.  Unless you find the super light, which can bring back the saturation of color.  Problem is, the super light has yet to be put in to Chromomancy.  It will be done sometime.

First, something else must be done.  There will be a drawing thingy of something not abstract, but abstracticized.

This is the part where I talk about the color grey.

He awoke in a bed of fine colors
They greeted him with all of their beauty
But he had no color.

They spun about him, sprinkling happiness
Try as they may to give him their colors
Alas, he’s colorblind.

This world, full of prismatic rays
Ignored by the one who lives in grays.

Suffice to say, gray is nothing.  It’s saturation value is 0, so hue is irrelevant.  Without hue, there can be no color.  Now the color grey pops up a few times in the natural world.

The very very first occurrence of grey was before color vision existed.  Before cones existed.  Only rods.  Except this is far before the scope of our  evolutionary memory, so we’ll skip this.

The other two occurrences are clouds and volcano ash.  And the emotional responses to both are responsible for our modern interpretation of this color.


There are two types of clouds.  White and gray.  White clouds do not have a lot of water in them, so it won’t rain.  Grey clouds are the ones that make rain.  And it is not really that optimal to do hunting in the rain.  So we’ve adapted to become sullen and withdrawn when it rains.  Likewise,


There are two types of volcanic eruptions.  The kind that kills everything, and the kind that just blankets everything in ash.  If everything dies, they don’t pass down memories.  So the memories we take have from those who have merely been blanketed.  And again, hunting isn’t very optimal until the grey is gone.

So the color grey causes tiredness, withdrawal, and some other really depressing stuff.  So why not make the main goal of the main character in Chromomancy to just collect as much color s possible without fading to grey?  Find the super light that fills all the grays with color!


Oh, and the most recent version, 0.11.4, can be found here: https://sites.google.com/site/magic29a/chromomancy-version-0-11-4

Oh, and there’s  facebook page too, so go and like that.

Depressing Poem

Well, at least I think it’s a pretty profound poem.  It’s not exactly iambic, but…


He awoke in a bed of fine colors
They greeted him with all of their beauty
But he had no color.

They spun about him, sprinkling happiness
Try as they may to give him their colors
Alas, he’s colorblind.

This world, full of prismatic rays
Ignored by the one who lives in grays.


This foreshadows a writing about the color gray tomorrow.  Or… later today.  And a Chromomancy update.

Chromomancy Update #8 and Doors

Let’s talk about doors.

A door is, simply, a movable barrier.  Usually rectangular.  Usually to prevent things from getting into somewhere.  Or out.  Like a snail uses a door to keep predators out of its shell.

Now the first doors relating to human history was in the cave age.  Say I’ve got a cave.  Say it’s winter.  Well then I probably want something to block the cold from getting into my cave.  I roll a big stone to block the cold air from getting into my cave.  And what happens?  Two things happen.  First, it is now really really dark.  But I won’t complain about the dark for very long because I am about to die of asphyxiation.

And everyone else who lives in nearby caves are like, “Yo man, after So-and-So installed the new door, I ain’t seen him.  Want to open it and see what’s up?”

And a group of people open the door to find a corpse of the first person to use a door.  And for a while, nobody really wants a door.  They are quite fearsome objects, killing people here and there.  And people didn’t even know oxygen existed(or that it was necessary for life), so instead of saying, “An unfortunate death of asphyxiation”, they say, “OMFG Doors are EVIL EVIL EVIL.  Kill all doors on sight!  NO DOORS.  BAD DOORS. EVIL!”

This idea that doors are evil had made its way into early civilizations too.  Want to contain an evil curse?  Keep it busy by giving it a door.  Archaeologists kick down the door a few thousand years later?  No more door to distract curse.  King Tut haunt you now.

So in essence, the purpose of a door is to keep evil on one side, and good on the other side.  To put it in modern terms, a door separates things.  Open a door, expect something different than what you’ve seen already, something dangerous.

One example use of a door.

Suppose you’re in a desert being chased and want to evade your chaser.  Take a door out of your pocket and plant it in the desert sand.  Go through the door and close it.  Your pursuer will then have to open the door upon reaching it.  You are to stay behind the frame, waiting in ambush.  Door opens, you ambush.  And if your chaser opts instead to walk around the door, rotate the door about yourself, keeping it between you and your chaser, forcing your chaser to go through the door to reach you.

One of the prime emotions tied to doors are fear.  Opening a door you have never seen before can be quite unnerving.  Who knows what may be hiding behind it?  A bat?  A vampire?  A vampire and a bat?  A vampire bat?  A pile of old board games?  An empty room?  Doors hide the unknown.  They conceal the evil on the other side.  Unless you are evil in which case it is concealing good.

It is no surprise, then, that the word door is found in the proverb “Do or die”.  The original phrase was “Die, door!” when the fear associated with doors begat violence.  Some people said it differently it “Door!  Die!”  This method of speaking caught on, because it was faster to say, for it lacked a comma.  Then, over time, people lost the feeling of the exclamation, and it was just “Door.  Die.”  Then, it became just a formality to say, “Do-or-die”.  This was coupled with a shift in meaning of the phrase, which because “[Do] kill the door or die”.  And now, it is a common proverb to say “Do or die”.  That is the origin of the phrase.

Doors are evil.  Kill them all.  Open door policy.

There was an old door made of wood.
Which quietly, subtly, stood.
An intruder came by,
The door gave a sigh
And said, “Dude get out of my hood.”

There was an old door made of blood.
A quiet and quite subtle stood.
An intruder came by,
The door gave a sigh
And said, “Dude get out of my mood.”

So Chromomancy Update before a third poem even worse than the second.  Well, there are levels now.

There’s also an inventory screen.  And the shrapnel is attracted to the player sometimes.  So next, there will grenades which will explode with great conviction when enemies are found nearby.  And maybe there will be more dialogue and more levels.  And level 6 will probably exist, and level 1 will no longer say below it, “DEATH BEYOND HERE”.  And maybe there will be other stuff.  Like additional pylons which do not require you to construct.

New features that weren’t here before include dialogue, combat, levels, and inventory.

Romance and Blood

The Greeks were known for looking for a unifying theory to explain how everything works.  Thales said everything was made of water.  Some other guy said fire, and someone said air.  Pythagoras said Apeiron or as others know it, Aether.  But we can tell that the underlying force of the universe can be none of these  just by looking with out eyes.  Not everything works because of these elements.  But I have a new unifying theory.  Much better than the theory of scrabble unified theory which does not explain why people who do not play scrabble exist.  I say, everything in the universe runs on love.

We had an early example in poetry about the origin of blood agglutination where two blood cells fall in love, Bob and Zoe.  Unfortunately, Bob is AB+ and Zoe is O and Bob is in Zoe’s domain.  Agglutination ensues.



But perhaps that was not convincing enough.  Perhaps there remains doubt as to whether the universe can be explained solely through metaphors of love.

I present, Act 2 of The Universe Runs Of Love.  Starring Oxygen and Hemoglobin.

Hemoglobin had just been born and had begun already looking for someone to spend his life with.  But he had a small handicap.  He was to be bound his entire life to a large vehicle.  The Red Blood Cell.  He knew it better as Earth.  Oh, how he longed to find someone, but the only inhabitants of Earth were other proteins named Hemoglobin, and to marry someone with the same name as oneself just seemed wrong to him.  He needed someone who was not a Hemoglobin, nay, not even a protein.  Someone who could touch him in just the right place.  And this place, there were 4.  4 binding spots.

Hemoglobin’s opportunity came when the Aliens descended onto Earth.  They were small compared to the  Hemoglobins, but the press made a great deal about it.  “First Descent of the Oxygen Since Last Century” was what the headlines read.  But our main character Hemoglobin saw something different in one of the Oxygens.  He didn’t see just an alien to yell about and make a fuss about.  He saw someone who made him turn bright red in love.

So he approached her.  And they talked.  And that night, Oxygen attached herself to Hemoglobin’s binding site.  But then, the next morning, when Hemoglobin woke up, Oxygen was nowhere to be found.  Nor were any of the other Oxygens.  But she left a note for him.

“Tissue needs me.  But I have a consolation for you.”

Walking into the room, just as Hemoglobin had read the card, was someone who had vaguely the same physical features as Oxygen, but was somewhat hideous.

“Hello Hemoglobin.  My name is Carbon Dioxide.  Oxygen told me to substitute for her, so I will accompany you until she returns.”

Try as Hemoglobin might, he could not keep Carbon Dioxide away from him.  Carbon Dioxide loved Hemoglobin very much and restraint orders don’t exist on this BloodCell.  They were bound.  And Hemoglobin was sad, because he missed Oxygen.  He turned a much darker shade of red.  Through a red color filter, this would look quite blue (blue is not just creativity, it is also sadness).

Many many years passed.  100 years passed.  And then, Oxygen returned from the sky, along with the other Oxygens.  Carbon Dioxide bid Hemoglobin farewell and fled to the sky.  Oxygen and Hemoglobin were once again together.  And Hemoglobin was happy once again and turned bright red.

Except if you know about the respiratory system, you will know what happens again that night and that morning and the next 100 years of Hemoglobin’s life.


Aside from the amounts of time that pass between events, this is mostly accurate.  The time exaggeration was used so that human readers can get a feel for the amount of love that exists between Hemoglobin and Oxygen.  Love that lasts through an absence of 100 years is very strong.  Let it be known, however, that Hemoglobin develops an even stronger bond with Carbon Monoxide, and she, unlike Oxygen, is not needed by Tissue.  This is what goes on in your blood, my blood, my cat’s blood, and even Jack the Ripper’s blood.  Every Hemoglobin protein on every blood cell.

Hemo Rage

Hemo Rage is that game in the page called Original HemoRage Design Document.

It is not complete, but at this stage, it is playable.  Story about blood cells coming tomorrow with pictures and stuff maybe, and detailed strategies and control explanations, but I figured I’d just give the HemoRage release it’s own posting.  The code can be found here


Cursory overview of controls:

Arrows: Move Cursor

X: When cursor is over an antibody, attacks adjecent blood cell

Space: Select unit for movement

Q: End turn

Enter: Alter unit type if it is on it’s spawning square.  Or if your blood cell is on a base that isn’t yours, sacrifice blood cell to capture base.

Esc: Exit

Letters are antibodies, circles are antigens.  You can see your own blood types but not your opponents, so you must infer based on effects of antibodies.  Agglutinated blood cells follow antibodies until they die after a few turns.  Blood cells also perish in their own, and those with fewer antigens die sooner.

As of now, I have literally no idea what kind of strategy is involved in this game, or if there is strategy at all.  This is only the preliminary release of code.

Tag Cloud