top of page

Studying a Class on Fish

Writer: Kevin LeeKevin Lee

I successfully turned my fish into a class, so I feel satisfied for this week. I also used the sin movement that my teacher suggested, but after successfully teaching my fish to swim, I still want to have my fish move as if they are migrating or wander their own directions. I think I can try to solve this problem over time.


One solution to the movement problem I'm thinking of is coding a function that changes the angle of the first circle by 1 degree of rotation randomly. that way there will be slight adjustment in the direction of the fishes movement.


Other than that I have a lot of scattered thoughts on my project which include the following:


  1. I feel that my code is too messy and too long. I want to clean it up, but I feel like I can't do so until I have all the code settled. I'm constantly changing, adding, and subtracting ideas to try to make an experience that I'm satisfied with.

  2. I also worry about the processing ability for my sketch to run. It already started lagging with 10 fish, and I want to run about 100 fish.

  3. I think my next goal might be to add images to each section of the fish. I think I'll put the image after each circle using the same x & y positions.

  4. I really want to find a way to make the construction of the fish body a loop rather than hard code the entire process.

On an emotional level, I wonder if it's a natural feeling to want to rush the learning process, because I have a vision for the project, but feeling incompetent.

 
 
 

Recent Posts

See All

The Scream Machine

https://editor.p5js.org/Inkreas/sketches/1NsFyGwnk Initially I was trying to connect my phone to play music into my p5 sketch using the...

1 Comment


Ellen Nickles
Ellen Nickles
Oct 26, 2021

The vision you laid out in last week’s post is exciting!


Regarding the sketches from yesterday: from an organizational standpoint, good idea to develop the features independently, especially since you plan to incorporate a number of them into the final scene.


You made excellent progress on the fish!


Here’s the sketch from the end of class yesterday as an example of how to time / delay the creation of new fish objects: https://editor.p5js.org/enickles/sketches/AWEPYv8-3


This is just a start. You can certainly use other timing mechanisms (linked on the HW Wiki), and play around how much time to wait and how many fish are created at once.


Try incorporating the logic of the bouncing ball to bounce the hue; with a…


Like
Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by Bitch You Thought Blog. Proudly created with Wix.com

bottom of page