LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

XOR table [colored]

Root / General / [.]

MinxrodCreated:
I was writing down a XOR table for hex digits, and there were some neat patters that arose, which wasn't surprising but they looked cool and in color it looks like art so here you go, I have a picture. It's also done entirely by hand, because it was just supposed to be a reference sheet until I saw the symmetry and such. Also, I have a few XOR-based programs to be uploaded soon, so look forward to that if you like bitwise logics :)

Ah yes, this is what we call a XOR texture. It's a really easy to generate procedural texture that gets used as a placeholder ind a LOT of things. Some pseudocode to make one in SB:
FOR Y%=0 TO 31
 FOR X%=0 TO 31
  C%=(X% XOR Y%)<<3
  GPSET X%,Y%,RGB(C%,C%,C%)
 NEXT
NEXT

Ah yes, this is what we call a XOR texture. It's a really easy to generate procedural texture that gets used as a placeholder ind a LOT of things. Some pseudocode to make one in SB:
FOR Y%=0 TO 31
 FOR X%=0 TO 31
  C%=(X% XOR Y%)<<3
  GPSET X%,Y%,RGB(C%,C%,C%)
 NEXT
NEXT
XOR texture? That's neat, I should try it :D I wrote a program which creates the pattern with my color scheme, but I didn't think to try it in greyscale. Thank you! *test* Also, that pseudocode ran no problems, add an ACLS and a WAIT 500 and it looked perfect.