free software resistance
the cost of computing freedom is eternal vigilance
### cf.py
*original date:* oct 2014
*orginally posted:* sep 2024
the program that doesnt quite draw a fractal and wasnt exactly trying to. it was however, trying to draw circles, made of circles, made of circles:
```
#!/usr/bin/env python
# coding: utf-8
#### license: creative commons cc0 1.0 (public domain)
####http://creativecommons.org/publicdomain/zero/1.0/
#### doily ... 2014 menn
import pygame, time, math, random
def circlepoints(xc, yc, r, c):
oldcolors = [(0, 0, 0), (0, 0, 170), (0, 170, 0), (0, 170, 170),
(170, 0, 0), (170, 0, 170), (170, 85, 0), (170, 170, 170),
(85, 85, 85), (85, 85, 255), (85, 255, 85), (85, 255, 255),
(255, 85, 85), (255, 85, 255), (255, 255, 85), (255, 255, 255)]
pygame.display.update()
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_ESCAPE:
pygame.quit()
quit()
for xy in range(-314, 315, 60):
x = xc + math.cos(xy / 100.0) * r
y = yc + math.sin(xy / 100.0) * r
if c < 5:
circlepoints(int(x), int(y), r * 2.8, c + 1)
pygame.draw.circle(surface, oldcolors[c + 8], (int(x), int(y)), 3, 0)
pygame.draw.circle(surface, oldcolors[c], (int(x), int(y)), 4, 2)
else:
pygame.draw.circle(surface, oldcolors[c + 8], (int(x), int(y)), 3, 0)
pygame.draw.circle(surface, oldcolors[c], (int(x), int(y)), 4, 2)
pygame.init()
xw = 800
yh = 600
surface = pygame.display.set_mode((xw, yh))
r = 14
c = 1
xc = int(xw / 2)
yc = int(yh / 2)
circlepoints(xc, yc, r, c)
pygame.display.update()
while 1:
try:
time.sleep(.001)
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_ESCAPE:
pygame.quit()
quit()
elif event.type == pygame.QUIT:
pygame.quit()
quit()
except:
pygame.quit()
quit()
```
license: 0-clause bsd
```
# 2014 mn
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
```
=> https://freesoftwareresistance.neocities.org