blurred edges ellipse
in
Programming Questions
•
1 month ago
Hi!
I made a ellipse with blurred edges. Im still learning processing and coding, my example works but wonder is there any other solution thats more "proper"? otherwise this technique would work for blurring the edges of almost anything i guess
I made a ellipse with blurred edges. Im still learning processing and coding, my example works but wonder is there any other solution thats more "proper"? otherwise this technique would work for blurring the edges of almost anything i guess
- void setup() {
- size(400, 400);
- background(0);
- }
- void draw() {
- background(0);
- boll();
- }
- void mousePressed() {
- background(0);
- }
- void boll() {
- for (int i = 0; i < 85; i++) {
- int d = 1 + (i*2);
- int alpha = 255 - (i*3);
- noStroke();
- fill(255, alpha);
- // print("d:" + d + " ");
- // print("alpha:" + alpha + " ");
- ellipse(mouseX, mouseY, d, d);
- }
- }
1