Exemplo n.º 1
0
Arquivo: draw.py Projeto: DDMAL/Gamera
 def __doc_example1__(images):
     image = Image((0, 0), Dim(100, 100), RGB, DENSE)
     for i in range(10):
         image.draw_circle((randint(0, 100), randint(0, 100)),
                           randint(0, 100),
                           RGBPixel(randint(0, 255), randint(0, 255), randint(0, 255)),
                           1.0, 0.1)
     return image
Exemplo n.º 2
0
 def __doc_example1__(images):
     from random import randint
     from gamera.core import Image, Dim
     image = Image((0, 0), Dim(100, 100), RGB, DENSE)
     for i in range(10):
         image.draw_circle((randint(0, 100), randint(0, 100)),
                           randint(0, 100),
                           RGBPixel(randint(0, 255), randint(0, 255),
                                    randint(0, 255)), 1.0, 0.1)
     return image
Exemplo n.º 3
0
 def __doc_example1__(images):
   from random import randint
   from gamera.core import Image, Dim
   image = Image((0, 0), Dim(100, 100), RGB, DENSE)
   for i in range(10):
     image.draw_circle((randint(0, 100), randint(0, 100)),
                       randint(0, 100),
                       RGBPixel(randint(0, 255), randint(0,255), randint(0, 255)),
                       1.0, 0.1)
   return image