Пример #1
0
 def get(self, instance):
     x = self.next_argument()
     y = self.next_argument()
     if instance is None:
         return 0
     active = instance.objectPlayer
     image = active.make_image(active.currentFrame)
     offset = (x + y * image.width) * 3
     data = image.get_data("RGB", -image.width * 3)[offset : offset + 3]
     r = ord(data[0])
     g = ord(data[1])
     b = ord(data[2])
     return make_color_number(r, g, b)
Пример #2
0
 def get(self, instance):
     x = self.next_argument()
     y = self.next_argument()
     if instance is None:
         return 0
     active = instance.objectPlayer
     image = active.make_image(active.currentFrame)
     offset = (x + y * image.width) * 3
     data = image.get_data('RGB', -image.width * 3)[offset:offset + 3]
     r = ord(data[0])
     g = ord(data[1])
     b = ord(data[2])
     return make_color_number(r, g, b)
Пример #3
0
 def get(self, instance):
     if not instance.objectPlayer.widget.rectangle:
         return 0
     color = instance.objectPlayer.widget.rectangle.colors[:3]
     return make_color_number(*color)
Пример #4
0
 def get(self, instance):
     color = instance.objectPlayer.widget.document.get_style('color')[:-1]
     return make_color_number(*color)
Пример #5
0
 def get(self, instance):
     return make_color_number(*instance.objectPlayer.listObject.backColor)
Пример #6
0
 def get(self):
     r, g, b = self.player.frame.clearValue[:3]
     return make_color_number(r * 255, g * 255, b * 255)
Пример #7
0
 def get(self, instance):
     if not instance.objectPlayer.widget.rectangle:
         return 0
     color = instance.objectPlayer.widget.rectangle.colors[:3]
     return make_color_number(*color)
Пример #8
0
 def get(self, instance):
     color = instance.objectPlayer.widget.document.get_style('color')[:-1]
     return make_color_number(*color)
Пример #9
0
 def get(self, instance):
     if instance.objectPlayer.hyperlinkColor is None:
         return 0xFFFF
     return make_color_number(instance.objectPlayer.hyperlinkColor)
Пример #10
0
 def get(self, instance):
     if instance.objectPlayer.border2 is None:
         return 0xFFFF
     return make_color_number(instance.objectPlayer.border2)
Пример #11
0
 def get(self, instance):
     return make_color_number(*instance.objectPlayer.listObject.backColor)
Пример #12
0
 def get(self, instance):
     if instance.objectPlayer.hyperlinkColor is None:
         return 0xFFFF
     return make_color_number(instance.objectPlayer.hyperlinkColor)
Пример #13
0
 def get(self, instance):
     if instance.objectPlayer.border2 is None:
         return 0xFFFF
     return make_color_number(instance.objectPlayer.border2)
Пример #14
0
 def get(self):
     r, g, b = self.player.frame.clearValue[:3]
     return make_color_number(r * 255, g * 255, b * 255)
Пример #15
0
 def get(self, instance):
     if instance is None:
         return 0
     return make_color_number(*instance.objectPlayer.shape.color2)