Pixel patterns lazarus / 39-Graphics ---------------------------------------------------------------------- Dibo · 2012-10-02 12:20 Hi, Anyone know some interesting sites / algorhitms (object pascal preffered) with pixel patterns? For example like backgrounds in this pictures: http://dribbble.s3.amazonaws.com/users/2823/screenshots/306239/attachm ents/12748/Sticky%20Big.jpg http://dribbble.s3.amazonaws.com/users/1636/screenshots/155888/small- icons-2.png Regards ---------------------------------------------------------------------- User137 · 2012-10-02 15:49 Quote from: Dibo on October 02, 2012, 02:20:25 pmhttp://dribbble.s3.am azonaws.com/users/1636/screenshots/155888/small-icons-2.pngThis pattern at least is quite simple: (pseudo) Code: [Select]per pixel(x, y):   if ((x+y) mod 5=0) or ((y-x) mod 5=0) then color[x, y] := rgb(0, 0, 0) // Black   else color[x, y] := rgb(40, 40, 40); // Some dark shade of gray (Not tested    Tell me it does diagonal grid...) ---------------------------------------------------------------------- Dibo · 2012-10-02 16:46 Wow . Exactly what I needed. Programmatically created pattern. I attached screen of result of your code. Anyone know sites with similar algorithms? This style (programmatically created) of patterns have a name?