HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/inkscape/extensions/color_brighter.py
#!/usr/bin/env python
import coloreffect

class C(coloreffect.ColorEffect):
  def colmod(self,r,g,b):
    FACTOR=0.9
   
    i=int(1.0/(1.0-FACTOR))
    if r==0 and g==0 and b==0:
      return '%02x%02x%02x' % (i,i,i)
    if r>0 and r<i:
      r=i
    if g>0 and g<i:
      g=i
    if b>0 and b<i:
      b=i;

    r=min(int(round((r/FACTOR))), 255)
    g=min(int(round((g/FACTOR))), 255)
    b=min(int(round((b/FACTOR))), 255)
   
    return '%02x%02x%02x' % (r,g,b)

c = C()
c.affect()