-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAmpCircle.pde
30 lines (27 loc) · 1.07 KB
/
AmpCircle.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//___________________________________________________________________________
//An immortal object with gravity in space that pulses to incoming RMS data |
//```````````````````````````````````````````````````````````````````````````
public class AmpCircle extends AmpShape
{
public AmpCircle(float min_size, float revolve_radius, PVector velocity, PVector location, PVector revolve_point,
color inner_color, color outer_color, boolean screen_bounded, int start_freq_band,
int end_freq_band, boolean use_weighted, int stroke_width)
{
super(min_size, revolve_radius, velocity, location, revolve_point,
inner_color, outer_color, screen_bounded, start_freq_band,
end_freq_band, use_weighted, stroke_width);
}
void draw()
{
if (screen_bounded)
check_screen_collision();
//Draw Amp Circle
noStroke();
fill(color(outer_color));
circle(location.x,location.y,outer_size);
//Draw Amp Ring
fill(color(inner_color));
noStroke();
circle(location.x,location.y,inner_size);
}
}