/inkscape/share/extensions/ |
H A D | text_randomcase.py | 4 import random namespace 15 a = random.choice([-2,-1,1]) 17 a = random.choice([-1,1,2])
|
H A D | color_HSL_adjust.py | 4 import random namespace 48 hsl[0] = random.random() 53 hsl[1] = random.random() 58 hsl[2] = random.random()
|
H A D | color_randomize.py | 3 import random namespace 43 return random.randrange(min, max) / 255.0 74 ret = str(random.uniform(min,max)/100)
|
H A D | fractalize.py | 19 import random, math, inkex, simplepath namespace 36 """ Scale perpendicular vector by random factor """ 37 r = random.uniform(-length/(1+smoothness),length/(1+smoothness))
|
H A D | lorem_ipsum.py | 24 import random namespace 202 scount=random.randint(_min,_max) 209 text+=foo[random.randint(0,len(foo)-1)]
|
H A D | rtree.py | 20 import inkex, simplestyle, pturtle, random namespace 27 turn = random.uniform(20, 40) 29 rtree(turtle, size*random.uniform(0.5,0.9), min, pt) 31 turn = random.uniform(20, 40) 33 rtree(turtle, size*random.uniform(0.5,0.9), min, pt)
|
H A D | markers_strokepaint.py | 21 import random namespace
|
H A D | radiusrand.py | 19 import random, math, inkex, cubicsuperpath namespace 23 r = abs(random.normalvariate(0.0,0.5*max(rx, ry))) 25 r = random.uniform(0.0,max(rx, ry)) 26 a = random.uniform(0.0,2*math.pi)
|
H A D | lindenmayer.py | 19 import inkex, simplestyle, pturtle, random namespace 77 self.turtle.fd(self.options.step * (random.normalvariate(1.0, 0.01 * self.options.randomizestep))) 80 self.turtle.fd(self.options.step * (random.normalvariate(1.0, 0.01 * self.options.randomizestep))) 82 self.turtle.lt(self.options.langle * (random.normalvariate(1.0, 0.01 * self.options.randomizeangle))) 84 self.turtle.rt(self.options.rangle * (random.normalvariate(1.0, 0.01 * self.options.randomizeangle)))
|
H A D | restack.py | 24 import inkex, os, csv, math, random namespace 203 random.shuffle(objects)
|
H A D | pathalongpath.py | 37 import random namespace
|
H A D | voronoi2svg.py | 39 import random namespace 359 random.seed("inkscape") 368 if self.options.delaunayFillOptions == "delaunay-fill" or self.options.delaunayFillOptions == "delaunay-fill-random": 370 'stroke' : fills[triangle[random.randrange(0, 2)]], 372 'fill' : fills[triangle[random.randrange(0, 2)]],
|
H A D | coloreffect.py | 22 import random namespace 105 newid = '%s-%d' % (id, int(random.random() * 1000)) 139 newhref = '%s-%d' % (id, int(random.random() * 1000))
|
H A D | generate_voronoi.py | 24 import random namespace 107 pattern.set('id', 'Voronoi' + str(random.randint(1, 9999))) 113 # generate random pattern of points 118 x = random.random()*q['width'] 119 y = random.random()*q['height']
|
H A D | pathmodifier.py | 34 import random namespace 81 id="%s%04i"%(prefix,random.randint(0,9999)) 83 id="%s%04i"%(prefix,random.randint(0,9999))
|
H A D | pathscatter.py | 37 import random namespace 129 help="group pick mode (rand=random seq=sequentially)") 278 clone=copy.deepcopy(patternList[random.randint(0, len(patternList)-1)]) 286 myid = patternList[random.randint(0, len(patternList)-1)].tag.split('}')[-1]
|
H A D | inkex.py | 33 import random namespace 291 new_id += random.choice('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
|
H A D | render_alphabetsoup.py | 26 import random namespace 259 def generate( state ): # generate a random tree (in stack form) 265 path = random.randint(0, (len(syntax[state][1])-1)) # choose randomly from next states 287 substack = generate( state ) # generate random substack 288 return draw( substack ) # draw random substack 337 stack = string.split( alphabet[char][random.randint(0,(len(alphabet[char])-1))] , "." ) 338 #stack = string.split( alphabet[char][random.randint(0,(len(alphabet[char])-2))] , "." ) 346 def generate_random_string( tokens, zoom ): # generate a totally random glyph for each glyph in the input string 515 help="Generate random (unreadable) text")
|
H A D | gcodetools.py | 82 import random namespace 3028 random.shuffle(order) 3030 specimen += [ [j, random.random(), random.random()] ] 3058 i1 = random.randint(0,len(self.population)-1) 3083 parent1 = random.randint(0,parent_count-1) 3084 parent2 = random.randint(0,parent_count-1) 3102 # if random [all...] |
/inkscape/share/extensions/test/ |
H A D | render_barcode.test.py | 9 import random namespace
|
/inkscape/src/extension/dbus/ |
H A D | pytester.py | 10 import random namespace 17 document.rectangle( random.randint(0,1000), 18 random.randint(0,1000), 19 random.randint(1,100), 20 random.randint(1,100))
|