コード例 #1
0
ファイル: active.py プロジェクト: carriercomm/anaconda
 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
ファイル: kcedit.py プロジェクト: carriercomm/anaconda
 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
ファイル: kcedit.py プロジェクト: carriercomm/anaconda
 def get(self, instance):
     color = instance.objectPlayer.widget.document.get_style('color')[:-1]
     return make_color_number(*color)
コード例 #5
0
ファイル: kclist.py プロジェクト: carriercomm/anaconda
 def get(self, instance):
     return make_color_number(*instance.objectPlayer.listObject.backColor)
コード例 #6
0
ファイル: frame.py プロジェクト: Matt-Esch/anaconda
 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
ファイル: KcBoxA.py プロジェクト: Matt-Esch/anaconda
 def get(self, instance):
     if instance.objectPlayer.hyperlinkColor is None:
         return 0xFFFF
     return make_color_number(instance.objectPlayer.hyperlinkColor)
コード例 #10
0
ファイル: KcBoxA.py プロジェクト: Matt-Esch/anaconda
 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
ファイル: KcBoxA.py プロジェクト: tkrym02/anaconda
 def get(self, instance):
     if instance.objectPlayer.hyperlinkColor is None:
         return 0xFFFF
     return make_color_number(instance.objectPlayer.hyperlinkColor)
コード例 #13
0
ファイル: KcBoxA.py プロジェクト: tkrym02/anaconda
 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)