About

Posts by :

week8 – animal LED SUMMER NIGHT

 

My animal LEDs!!

Its name is SUMMER NIGHT. Though it’s fall now…

I missed Yayoi Kusama’s fireflies exhibition, so I have to make one for my own.

 

I put them into a transparent glass vase with a sheet of blue paper in it.

I planned to make two fireflies and a frog, but didn’t have the yellow LEDs.

 

Vimeo here.

Github here.

My problem is that I’d like to make these LEDs blink at the same time and with different frequencies, or totally random.

But they are just blinking in a certain order now.

Library: layers

 

Here is my github link.

Last week I meet a problem with the winter sweet sketch.

As I wrote a “for loop” statement in the class sketch to draw the flower, in order to control the amount of the petals, it doesn’t work.

The reason is that there is no “void draw” in class sketch to complete the “for loop” statement.

 

And this week, I found a useful library called LAYERS, which could solve my problem.

The Layer library is some kind similar with class. But the biggest different between is that each layer could be controlled separatedly if you use the layers library. Because there is also a “void draw” in each layer. Here is the link of Layers.

 

  However, I meet new problems this week that after I used Layers library, my sketch ran quite slowly. It would take a few seconds when I clicked my mouse to draw a flower. 

Assignment for week2

Assignment for week2

This is my assignment for week2.

I made a film opening time counter. I used frameRate() instead of millis() or sencond() to control the time, for millis() was based on the time in my computer and would keep going. I don’t know how to control it.

Then I met a problem that after I loaded an image, the sketch freezed and the counter was inaccurate. Then I found a new function in processing.org named requestImage which can solve this problem, but it’s a little troublesome.

I want to know more about how to handle these sort of problems in a simple way.