Munching squares: Difference between revisions

Content added Content deleted
(→‎{{header|PHP}}: Added PureBasic)
(→‎{{header|PureBasic}}: Resized picture sample)
Line 240: Line 240:
[[File:xor_pattern_php.png|PHP output|200px]]
[[File:xor_pattern_php.png|PHP output|200px]]
=={{header|PureBasic}}==
=={{header|PureBasic}}==
[[File:PureBasic_XOR_Pattern.png|thumb|Sample display of PureBasic solution]]
<lang purebasic>#palletteSize = 128
<lang purebasic>#palletteSize = 128
Procedure.f XorPattern(x, y) ;compute the gradient value from the pixel values
Procedure.f XorPattern(x, y) ;compute the gradient value from the pixel values
Line 267: Line 266:
Until event = #PB_Event_CloseWindow
Until event = #PB_Event_CloseWindow
EndIf</lang>
EndIf</lang>
[[File:PureBasic_XOR_Pattern.png|Sample display of PureBasic solution|200px]]


=={{header|Tcl}}==
=={{header|Tcl}}==