PageSourceSearch

https://pictorx.com/filters/lichtenstein.js?v=O7VCfg_05haJMSJpyVeQUM4XrGUCkwjsdnmoOVQvsfk

js pictorx.com collected 2026-10-09 04:44:08 UTC 6,866 bytes, 1 lines download raw bytes

1const LICHTENSTEIN_PALETTE={'skin':{'r':0xff,'g':0xc0,'b':0xc0},'blue':{'r':0x3c,'g':0x46,'b':0xc8},'red':{'r':0xd0,'g':0x10,'b':0x10},'green':{'r':0x0,'g':0x60,'b':0x0},'yellow':{'r':0xff,'g':0xd8,'b':0x0},'darkBlue':{'r':0x0,'g':0x10,'b':0x54},'black':{'r':0x0,'g':0x0,'b':0x0},'white':{'r':0xff,'g':0xff,'b':0xff}},LICHTENSTEIN_DOT_COLORS=[LICHTENSTEIN_PALETTE['skin'],LICHTENSTEIN_PALETTE['blue'],LICHTENSTEIN_PALETTE['red'],LICHTENSTEIN_PALETTE['green'],LICHTENSTEIN_PALETTE['yellow']];function royLichtenstein(_0x3f7e04,_0x5649f4=0x80,_0x1def05=0x14,_0x12795a=0xa){const _0x4e002f=Math['max'](0x0,Math['min'](0xff,Number(_0x5649f4)||0x80)),_0x5b1389=Math['max'](0x0,Math['min'](0x64,Number(_0x1def05)??0x14)),_0x45c97f=Math['max'](0x2,Math['round'](Number(_0x12795a)||0xa));let _0x4e5045=lichtensteinQuantize(_0x3f7e04);for(const _0x20dd27 of LICHTENSTEIN_DOT_COLORS){_0x4e5045=lichtensteinApplyBenDayDots(_0x4e5045,_0x20dd27,_0x45c97f);}return lichtensteinDrawOutlines(_0x4e5045,_0x3f7e04,_0x4e002f,_0x5b1389);}function lichtensteinQuantize(_0x16ae9b){const {width:_0x49eb76,height:_0x42ef86,data:_0x489bb3}=_0x16ae9b,_0x3cfc13=new Uint8ClampedArray(_0x489bb3['length']),_0x5d4cec=0x28,_0x478dfa=0x32,_0x34bec2=0x82,_0x25ba67=0xb4,_0x408914=0xb4,_0x4d304b=0x96,_0x19bb39=0x8c;for(let _0x266001=0x0;_0x266001<_0x489bb3['length'];_0x266001+=0x4){const _0x54c519=_0x489bb3[_0x266001],_0xd8e9ce=_0x489bb3[_0x266001+0x1],_0x16421f=_0x489bb3[_0x266001+0x2],_0x53d5a7=_0x489bb3[_0x266001+0x3];let _0x1ea9e1;if(_0x16421f>0x78-_0x5d4cec&&_0x54c519>_0x16421f+0x4b-_0x5d4cec&&_0x54c519<_0x16421f+0x7d+_0x5d4cec&&_0xd8e9ce>_0x16421f&&_0xd8e9ce<_0x16421f+0x1e+_0x5d4cec)_0x1ea9e1=LICHTENSTEIN_PALETTE['skin'];else{if(_0x54c519<=0x80&&_0xd8e9ce<=0x80&&0xff-_0x408914<=_0x16421f&&_0x16421f<=0xff)_0x1ea9e1=LICHTENSTEIN_PALETTE['darkBlue'];else{if(_0x54c519<=0x8c+_0x478dfa&&_0xd8e9ce<=0x8c+_0x478dfa&&_0x16421f>=0x96-_0x478dfa)_0x1ea9e1=LICHTENSTEIN_PALETTE['blue'];else{if(0xff-_0x34bec2<=_0x54c519&&_0x54c519<=0xff&&_0xd8e9ce<=0x80&&_0x16421f<=0x80)_0x1ea9e1=LICHTENSTEIN_PALETTE['red'];else{if(_0xd8e9ce+_0x25ba67-0xc8>_0x54c519&&_0xd8e9ce>_0x16421f)_0x1ea9e1=LICHTENSTEIN_PALETTE['green'];else{if(0xff-_0x4d304b<=_0x54c519&&_0x54c519<=0xff&&0xff-_0x4d304b<=_0xd8e9ce&&_0xd8e9ce<=0xff&&_0x16421f>=0x0&&_0x16421f<=0x80)_0x1ea9e1=LICHTENSTEIN_PALETTE['yellow'];else _0x54c519<=_0x19bb39&&_0xd8e9ce<=_0x19bb39&&_0x16421f<=_0x19bb39?_0x1ea9e1=LICHTENSTEIN_PALETTE['black']:_0x1ea9e1=LICHTENSTEIN_PALETTE['white'];}}}}}_0x3cfc13[_0x266001]=_0x1ea9e1['r'],_0x3cfc13[_0x266001+0x1]=_0x1ea9e1['g'],_0x3cfc13[_0x266001+0x2]=_0x1ea9e1['b'],_0x3cfc13[_0x266001+0x3]=_0x53d5a7;}return new ImageData(_0x3cfc13,_0x49eb76,_0x42ef86);}function lichtensteinApplyBenDayDots(_0x28c244,_0x23ba27,_0x451054){const {width:_0x2dffee,height:_0x2036ff}=_0x28c244,_0x3eeae3=lichtensteinCreateBenDayPattern(_0x2dffee,_0x2036ff,_0x23ba27,_0x451054),_0x199d29=CanvasHelper['createDrawableCanvas'](_0x2dffee,_0x2036ff),_0x5ee798=_0x199d29['getContext']('2d',{'willReadFrequently':!![]});_0x5ee798['putImageData'](_0x3eeae3,0x0,0x0);const _0x19205f=copyImageData(_0x28c244),_0x1cdd63=_0x19205f['data'];for(let _0x181917=0x0;_0x181917<_0x1cdd63['length'];_0x181917+=0x4){lichtensteinColorMatch(_0x1cdd63[_0x181917],_0x1cdd63[_0x181917+0x1],_0x1cdd63[_0x181917+0x2],_0x23ba27)&&(_0x1cdd63[_0x181917+0x3]=0x0);}return _0x5ee798['drawImage'](createCanvas(_0x19205f),0x0,0x0),_0x5ee798['getImageData'](0x0,0x0,_0x2dffee,_0x2036ff);}function lichtensteinCreateBenDayPattern(_0xcd629e,_0x48278a,_0x439450,_0x40bca1){const _0x119d96=CanvasHelper['createDrawableCanvas'](_0xcd629e,_0x48278a),_0x1ea7dc=_0x119d96['getContext']('2d',{'willReadFrequently':!![]}),_0x1b8aaa=Math['max'](0x2,_0x40bca1),_0x4dfe07=Math['max'](0x1,_0x1b8aaa*0.4);_0x1ea7dc['fillStyle']='#FFFFFF',_0x1ea7dc['fillRect'](0x0,0x0,_0xcd629e,_0x48278a),_0x1ea7dc['fillStyle']=rgbToHex(_0x439450['r'],_0x439450['g'],_0x439450['b']);for(let _0x4348d0=0x0,_0x4e695f=_0x1b8aaa/0x2;_0x4e695f<_0x48278a+_0x1b8aaa;_0x4348d0++,_0x4e695f+=_0x1b8aaa*0.866){const _0x17d0d9=_0x4348d0%0x2*(_0x1b8aaa/0x2);for(let _0x1eff42=-_0x1b8aaa;_0x1eff42<_0xcd629e+_0x1b8aaa;_0x1eff42+=_0x1b8aaa){_0x1ea7dc['beginPath'](),_0x1ea7dc['arc'](_0x1eff42+_0x17d0d9+_0x1b8aaa/0x2,_0x4e695f,_0x4dfe07,0x0,Math['PI']*0x2),_0x1ea7dc['fill']();}}return _0x1ea7dc['getImageData'](0x0,0x0,_0xcd629e,_0x48278a);}function lichtensteinDrawOutlines(_0x42bc72,_0x41bbf7,_0x1239e1,_0x2c333b=0x14){const {width:_0x35f712,height:_0x19ea96}
1=_0x42bc72,_0x17841b=copyImageData(_0x42bc72),_0x3576ef=_0x17841b['data'],_0x2fb8af=edgeDetection(copyImageData(_0x41bbf7),![],!![])['data'],_0x4c97b9=lichtensteinBuildOutlineMask(_0x2fb8af,_0x35f712,_0x19ea96,_0x1239e1,_0x2c333b),_0x317ba0=lichtensteinThickenMask(_0x4c97b9,_0x35f712,_0x19ea96,0x2);for(let _0x41bd62=0x0,_0x1b236f=0x0;_0x41bd62<_0x317ba0['length'];_0x41bd62++,_0x1b236f+=0x4){const _0x3ad1a3=_0x317ba0[_0x41bd62]/0xff;if(_0x3ad1a3<=0x0)continue;_0x3576ef[_0x1b236f]=Math['round'](_0x3576ef[_0x1b236f]*(0x1-_0x3ad1a3)),_0x3576ef[_0x1b236f+0x1]=Math['round'](_0x3576ef[_0x1b236f+0x1]*(0x1-_0x3ad1a3)),_0x3576ef[_0x1b236f+0x2]=Math['round'](_0x3576ef[_0x1b236f+0x2]*(0x1-_0x3ad1a3));}return _0x17841b;}function lichtensteinBuildOutlineMask(_0x56e26e,_0x43fe20,_0xbfb2de,_0x56249a,_0x270a9c=0x14){const _0x45a636=new Uint8Array(_0x43fe20*_0xbfb2de),_0x5653e1=Math['max'](0x0,Math['min'](0xff,Number(_0x56249a)||0x80)),_0x4830af=Math['max'](0x0,Math['min'](0x64,Number(_0x270a9c)??0x14)),_0x45920f=_0x5653e1-_0x4830af/0x2,_0x537a28=_0x5653e1+_0x4830af/0x2,_0x1e2e27=Math['max'](0.000001,_0x537a28-_0x45920f);for(let _0x5888e0=0x0,_0x2c158b=0x0;_0x5888e0<_0x45a636['length'];_0x5888e0++,_0x2c158b+=0x4){const _0x16f274=_0x56e26e[_0x2c158b];let _0x163f58=_0x4830af<=0x0?_0x16f274>=_0x5653e1?0x1:0x0:Math['max'](0x0,Math['min'](0x1,(_0x16f274-_0x45920f)/_0x1e2e27));_0x45a636[_0x5888e0]=Math['round'](_0x163f58*0xff);}return _0x45a636;}function lichtensteinThickenMask(_0x2a731b,_0x775e99,_0x5e8555,_0x5dc227=0x2){const _0x20783d=_0x2a731b['slice']();for(let _0x40f37b=0x0;_0x40f37b<_0x5e8555;_0x40f37b++){for(let _0x58a372=0x0;_0x58a372<_0x775e99;_0x58a372++){const _0x31b749=_0x40f37b*_0x775e99+_0x58a372;if(!_0x2a731b[_0x31b749])continue;for(let _0x27b02c=-_0x5dc227;_0x27b02c<=_0x5dc227;_0x27b02c++){for(let _0xa0b2a4=-_0x5dc227;_0xa0b2a4<=_0x5dc227;_0xa0b2a4++){const _0x4dca64=_0x58a372+_0xa0b2a4,_0x5a378c=_0x40f37b+_0x27b02c;if(_0x4dca64<0x0||_0x5a378c<0x0||_0x4dca64>=_0x775e99||_0x5a378c>=_0x5e8555)continue;const _0x193fcd=_0x5a378c*_0x775e99+_0x4dca64;if(_0x2a731b[_0x31b749]>_0x20783d[_0x193fcd])_0x20783d[_0x193fcd]=_0x2a731b[_0x31b749];}}}}return _0x20783d;}function lichtensteinColorMatch(_0x11a348,_0x3ab792,_0x41916b,_0x1a826c){return _0x11a348===_0x1a826c['r']&&_0x3ab792===_0x1a826c['g']&&_0x41916b===_0x1a826c['b'];}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.