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)
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)
def get(self, instance): if not instance.objectPlayer.widget.rectangle: return 0 color = instance.objectPlayer.widget.rectangle.colors[:3] return make_color_number(*color)
def get(self, instance): color = instance.objectPlayer.widget.document.get_style('color')[:-1] return make_color_number(*color)
def get(self, instance): return make_color_number(*instance.objectPlayer.listObject.backColor)
def get(self): r, g, b = self.player.frame.clearValue[:3] return make_color_number(r * 255, g * 255, b * 255)
def get(self, instance): if instance.objectPlayer.hyperlinkColor is None: return 0xFFFF return make_color_number(instance.objectPlayer.hyperlinkColor)
def get(self, instance): if instance.objectPlayer.border2 is None: return 0xFFFF return make_color_number(instance.objectPlayer.border2)
def get(self, instance): if instance is None: return 0 return make_color_number(*instance.objectPlayer.shape.color2)