Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Commit bcb2205

Browse files
committed
Fix particles mode
It was broken after previous commit
1 parent ad8014f commit bcb2205

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/draw_functions.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ def levels(sample, cr, width, height, colors, offset, radius):
208208
for i in range(ls):
209209
q = int(round(sample[i], 1) * 10)
210210
for r in range(q):
211-
draw_element(cr, step * i + step * offset / 100, \
212-
height - (height / 10 * (r + 1)) * (1 - offset / 400), \
213-
max(step - step * offset / 100 * 2, 1), \
211+
draw_element(cr, step * (i + 0.5), \
212+
height - (height / 10 * (r + 0.5)), \
213+
max(step - step * offset / 50, 1), \
214214
max(height / 10 * (1 - offset / 50), 1), radius)
215215
cr.fill()
216216

0 commit comments

Comments
 (0)