Commit a354b4f3 authored by ludi's avatar ludi

pdf conflict

parents 90fc83b9 c8340851
This diff is collapsed.
This diff is collapsed.
from __future__ import division
from flat import gray, shape, document
from math import pi, cos, sin
from random import normalvariate, random
SIZE, STEPS = 320, 5
cx = cy = SIZE/2
r = min(cx, cy)/STEPS
point = shape().nostroke().fill(gray(0))
boundary = shape().width(0.12)
sigma = document(SIZE, SIZE, 'mm')
page = sigma.addpage()
for i in range(500000):
angle = 2*pi*random()
radius = normalvariate(0, 1)*r
x = cos(angle)*radius + cx
y = sin(angle)*radius + cy
page.place(point.circle(x, y, 0.09))
for i in range(3, 4):
page.place(boundary.circle(cx, cy, r*i))
sigma.pdf('sigma.pdf')
\ No newline at end of file
This diff is collapsed.
......@@ -10,7 +10,7 @@ def layout(author, title, paragraphs):
headline.paragraph(title),
body.paragraph('')]
pieces.extend(body.paragraph(p) for p in paragraphs)
doc = document(148, 210, 'mm')
doc = document(100, 210, 'mm')
page = doc.addpage()
block = page.place(text(pieces))
while block.frame(18, 21, 114, 167).overflow():
......@@ -20,6 +20,7 @@ def layout(author, title, paragraphs):
fichier = codecs.open("songe.txt", "r", "utf-8")
lignes_brutes = fichier.readlines()
fichier.close()
lignes = []
......
#!/usr/bin/env bash
inotifywait -m -r '.' -e create -e moved_to |
while read path action file; do
python songe.py
echo 'yesss '
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment