lehrkraefte:blc:math:oxocard

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lehrkraefte:blc:math:oxocard [2019/04/05 09:27]
Ivo Blöchliger
lehrkraefte:blc:math:oxocard [2019/04/05 10:08] (current)
Ivo Blöchliger
Line 16: Line 16:
 def glocke(p1,p2): def glocke(p1,p2):
     d2 = (p1[0]-p2[0])**2+(p1[1]-p2[1])**2     d2 = (p1[0]-p2[0])**2+(p1[1]-p2[1])**2
-    return int(255.0/(1.0+d2/20))+    return int(255.0/(1.0+d2/5))
          
  
  • lehrkraefte/blc/math/oxocard.1554449259.txt.gz
  • Last modified: 2019/04/05 09:27
  • by Ivo Blöchliger