CoretechR / Retro-Audio

Portable MP3 Player for Music and Audiobooks
https://hackaday.io/project/185994
GNU General Public License v3.0
126 stars 21 forks source link

Hey, I hope you are great. #5

Open AzraelOfficial opened 1 year ago

AzraelOfficial commented 1 year ago

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 commented 1 year ago

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:

https://github.com/CoretechR/Retro-Audio/assets/13223470/e31692c7-e014-4f21-ab43-6d0a39ad3103

AzraelOfficial commented 1 year ago

Thanks 🙏🙌Sent from my iPadOn Jun 18, 2023, at 9:35 PM, Max K @.***> wrote: 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: https://github.com/CoretechR/Retro-Audio/assets/13223470/e31692c7-e014-4f21-ab43-6d0a39ad3103

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>