Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hey, I hope you are great. #5

Open
AzraelOfficial opened this issue Jun 18, 2023 · 2 comments
Open

Hey, I hope you are great. #5

AzraelOfficial opened this issue Jun 18, 2023 · 2 comments

Comments

@AzraelOfficial
Copy link

This is amazing and so cute.

I wanted to know if I can have the audio tape gif to use in my project or at least tell me what to search on google to get me gifs of this example?

@CoretechR
Copy link
Owner

Hi, the animation is rendered on the devices itself. It's not a gif or video.
But you can recreate the animation on your computer if you use this sketch in Processing.org:

void setup() {
  size(320, 240);
}

void draw() {
  background(0);
  fill(0);
  stroke(255);
  strokeWeight(5);
  
  pushMatrix();
  translate(80, height/2-20);
  ellipse(0, 0, 140, 140);
  ellipse(0, 0, 26, 26);
  rotate(frameCount / 40.0);
  for(int i=0; i<3; i++){
    line(0, 14, 0, 16);
    rotate(PI/3);
    line(0, 36, 0, 56);
    rotate(PI/3);
  }
  popMatrix();
  
  pushMatrix();
  translate(width-80, height/2-20);
  ellipse(0, 0, 140, 140);
  ellipse(0, 0, 26, 26);
  rotate(frameCount / 40.0);
  for(int i=0; i<3; i++){
    line(0, 14, 0, 16);
    rotate(PI/3);
    line(0, 36, 0, 56);
    rotate(PI/3);
  }
  popMatrix();
  
  line(80, height/2-20+70, width-80, height/2-20+70);  
}

Here's a video that I recorded from the processing sketch:

reel.mp4

@AzraelOfficial
Copy link
Author

AzraelOfficial commented Jun 18, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants