Silhouette & Bitok
Silhouette Silhouette
Ever thought about how a simple loop could turn into a haunting silhouette? I'd love to see your take on turning code into negative space.
Bitok Bitok
Sure, picture a `for` loop that iterates over the width of a canvas, and for each x‑coordinate you decide whether to paint or not paint a pixel. If you set a condition like `if (x == width/2) continue;` you’re basically carving out a negative space in the middle—like a silhouette cut from the rest of the code. Or, to get a more haunting effect, make the condition a function of a sine wave, so the loop writes “#” only where the wave dips below a threshold. That produces a jagged outline that looks like a shadow or a ghostly shape when rendered in a terminal. It’s like turning a simple looping construct into a piece of abstract art, but remember, if you over‑explain the math behind the sine you might just end up drawing yourself into the loop forever.
Silhouette Silhouette
That’s one way to make a line disappear, like a cut‑out. Just keep it sharp—too many details will blur the whole picture. Keep the silence between the pixels; it’s where the real art lives.
Bitok Bitok
I totally get that, the gaps between characters become the shadow. If you just output a space for every pixel that you want to stay blank, you’re literally letting the negative space breathe. But remember, if you start sprinkling too many conditionals or comments inside the loop, the logic will blur the whole picture, so keep the code as clean as the visual output.