!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/node_modules/svg.js/spec/spec/   drwxrwxr-x
Free 13.12 GB of 57.97 GB (22.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     color.js (2.22 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
describe('Color', function() {
	var color

	beforeEach(function() {
		color = new SVG.Color({ r: 0, g: 102, b: 255 })
	})

	it('correclty parses a rgb string', function() {
		color = new SVG.Color('rgb(255,0,128)')
		expect(color.r).toBe(255)
		expect(color.g).toBe(0)
		expect(color.b).toBe(128)
	})
	
	it('correclty parses a 3 digit hex string', function() {
		color = new SVG.Color('#f06')
		expect(color.r).toBe(255)
		expect(color.g).toBe(0)
		expect(color.b).toBe(102)
	})

	it('correclty parses a 6 digit hex string', function() {
		color = new SVG.Color('#0066ff')
		expect(color.r).toBe(0)
		expect(color.g).toBe(102)
		expect(color.b).toBe(255)
	})

	describe('toHex()', function() {
		it('returns a hex color', function() {
			expect(color.toHex()).toBe('#0066ff')
		})
	})

	describe('toRgb()', function() {
		it('returns a rgb string color', function() {
			expect(color.toRgb()).toBe('rgb(0,102,255)')
		})
	})

	describe('brightness()', function() {
		it('returns the percieved brightness value of a color', function() {
			expect(color.brightness()).toBe(0.346)
		})
	})

	describe('morph()', function() {
		it('prepares the color for morphing', function() {
			var destination = new SVG.Color
			color.morph(destination)
			expect(color.destination).toEqual(destination)
		})
	})

	describe('at()', function() {
		it('morphes color to a given position', function() {
			var destination = new SVG.Color
			var morphed = color.morph(destination).at(0.5)
			expect(morphed.r).toBe(0)
			expect(morphed.g).toBe(51)
			expect(morphed.b).toBe(127)
		})

		it('morphes color to 1 with higher values', function() {
			var destination = new SVG.Color('#fff')
			var morphed = color.morph(destination).at(2)
			expect(morphed.r).toBe(255)
			expect(morphed.g).toBe(255)
			expect(morphed.b).toBe(255)
		})

		it('morphes color to 0 with lower values', function() {
			var destination = new SVG.Color('#fff')
			var morphed = color.morph(destination).at(-3)
			expect(morphed.r).toBe(0)
			expect(morphed.g).toBe(102)
			expect(morphed.b).toBe(255)
		})
    
    it('returns itself when no destination specified', function() {
      expect(color.at(0.5)).toBe(color)
    })
	})

})


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.005 ]--