pouët.net

Go to bottom

Random line of code thread

category: code [glöplog]
Based on visy's oneliner, a quick and slightly noisy shader, 'cause why not. ;)

Code:void mainImage( out vec4 fragColor, in vec2 fragCoord ) { vec2 uv = fragCoord.xy / iResolution.xy; float t = iGlobalTime; uv.x += .75*mod(uv.x+t,length(.5-uv)*.1 ); uv.y += .75*mod(uv.y+t,length(.5-uv)*.6 ); float c = mod( length(.7-uv)*sin(t+sqrt(2.*sin(uv.y)*cos(uv.x)*2.)),.26)*5.; c += mod( length(.3-uv)*sin(t+sqrt(2.*sin(uv.y)*cos(uv.x)*2.)),.26)*5.; fragColor = vec4(1.2-c,.6-c,c-uv.y,1.); }
added on the 2016-04-23 21:05:53 by tomaes tomaes
Code:while(balls_are_touching) gay();
added on the 2016-04-24 14:48:29 by Tigrou Tigrou
Code:test->generate(&vertices, &faces);
added on the 2016-04-24 19:22:38 by Preacher Preacher
x.y+=20.-20.*t-.53*u,x=(x+vec3(.7,1.,.8))*p((v-101.)*.34*a*l)*n((v-101.)*.41*a*l)*s((v-101.)*.23*a*l),mix(max(c(x*n(v*.13),1.5+2.*h),-c(vec3(x.x,-x.y+.4,x.z)*n(v*.13)*p((v-260.)*.24*g)*s((v-260.)*.23*g),1.5*(1.-l)*(1.-h)+3.*g)),min(min(min(n(x+r*vec3(0.,.4883,0.),.6),n(x+r*vec3(-.3554,-.4883,-.6),.6)),n(x+r*vec3(.6838,-.4883,0.),.6)),n(x+r*vec3(-.3554,-.4883,.6),.6)),a-(1.-l)+o);
added on the 2016-04-24 19:25:11 by noby noby
Code:nop ; that was exhausting, so let's chill
added on the 2016-04-24 21:11:38 by HellMood HellMood
AuthenticationService.SetApiToken(response.data.data.token.data.api_token);
added on the 2016-04-26 22:09:37 by D.Fox D.Fox
Code:<div style="background-color:#xxxxxx;background-image:url('tex.png'); background-repeat:repeat;"> <div style="background-color:transparent;background-image:url('logo.png'); background-position:center;background-repeat:no-repeat;"> </div</div>
added on the 2016-04-27 01:51:46 by FunGas FunGas
Code: WHEN 'SPERM'.
added on the 2016-04-28 08:56:06 by StingRay StingRay
Code:static unsigned char klumppi[64000];
added on the 2016-05-19 16:25:45 by Marq Marq
Code:__at(0x0000) uint8_t vmem[32768];
added on the 2016-05-19 16:57:09 by neon neon
Code:ushort inc = (*(ushort*)i & 0x1fffe);
added on the 2016-05-20 00:18:56 by CobaltHex CobaltHex
Code:max(-min(abs(abs(p.x)-5.)-.5,abs(mod(p.y,1.)-.5)-.1),min(min(p.y+1.+step(mod(abs(p.x*p.x*(sin(p.z*.2)*.5+1.)),.5)-.25,0.)*.05,max(abs(p.y-2.3+abs(p.x)*.5+(mod(abs(p.z),.2)-.1)*.2)-.2,abs(mod(p.z,3.)-1.5)-.5)),max(abs(abs(p.x)-3.-smoothstep(.0,1.5,p.y)+step(mod(p.z,2.),1.)*.1)-.5,abs(p.y)-(1.+step(mod(p.z,2.)-1.,0.)*5.))));
added on the 2016-05-27 01:50:41 by LJ LJ
drawgrid2;
ife_render(kupak,0);
added on the 2016-05-27 06:33:53 by pasy pasy
Code:move.l #"SHIT",$1.w
added on the 2016-05-30 07:38:02 by StingRay StingRay
Code: bne.b .nowackel
added on the 2016-07-02 13:29:10 by losso losso
Code:AUTOFAIL=YES

Found in the OS/2 config.sys file. Explains why OS/2 isn't around anymore..
added on the 2016-07-02 20:29:53 by Emod Emod
BB Image

Since Android Studio 2.0 and the famous "Instant Run" feature. I loose 30/40 minutes by day for rebooting the IDE, or waiting for it's task to complete, or waiting to run (actually I have to click twice on the Run button, sometime).

Actual version is 2.1.2.

Meh
added on the 2016-07-07 14:59:23 by Romain337 Romain337
Code:static forceinline SamplePosition BufferLengthToSamples(int32 mixBufferCount, const ModChannel &chn) { return (chn.increment * mixBufferCount + SamplePosition(0, chn.position.GetFract())); }

Now with 16 more fractional bits.
Code: move.w #300,d0 .lp nop dbra d0,.lp


for those that know what a piece of s**t this is...
added on the 2016-07-07 15:32:31 by djh0ffman djh0ffman
Code: for (x=[0..N]) for (y=[0..N]) for (z=[0..N]) { array(x+N*(y+N*z))=(x,y,z); } for (i=[0..N*N*N]) for (j=[0..N*N*N]) if (rand(100)>50) { xchg(array(i),array(j)); }


array(0..NB) are NB random generated dissociable coordinates.
added on the 2016-07-07 17:35:13 by Barti Barti
Code:mov ax,0a4f4h
ExitBig: ;Errorhandling if it is just RTS I am a
;senile dumb FUCK!
rts
added on the 2016-07-09 09:40:00 by _Chucky_ _Chucky_
Code:loop loops1
Code:SetSpriteDataPointers .macro clc lda \1 .for i=0, i<8, i=i+1 sta $07f8+i ;sprite #i pointer adc #1 .next .endm
added on the 2016-07-09 22:52:30 by rudi rudi

login

Go to top