예제 #1
0
파일: draw.py 프로젝트: 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
예제 #2
0
파일: draw.py 프로젝트: alan0526/Gamera
 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
예제 #3
0
파일: draw.py 프로젝트: elaboris/gamera
 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