A screenshot of your Lua terminal is a better document than a photograph of the same terminal, and it always will be. Photographs earn their place when the project leaves the screen: a microcontroller board running your script, a handheld console playing the game you wrote, a workshop bench where the code meets a physical object. Knowing which case you are in saves an afternoon of photographing pixels.
Choose the shot the screenshot cannot make
Ask what the photograph proves that a screen capture does not. Scale, texture, the fact that a person built and wired the thing, or the way the program behaves in a real environment — those are worth a camera. Proof that your code prints the right string is not.
If the answer is “it shows the code”, a screenshot at a readable size will serve your readers better. Use photography for the project as an object, and screenshots for the project as text.
Beat moiré and glare on a screen
Pointing a camera at a monitor produces two problems: moiré, the rainbow interference between the pixel grid and the camera’s sensor, and glare from whatever light is behind you. Both are manageable. Move the camera off-axis by ten or fifteen degrees so the grid lands differently, and step back to frame the screen rather than pushing the lens close. Focus carefully at a moderate aperture; stopping down to f/11 or beyond often makes the grid more visible, not less.
For glare, kill the light behind you. Turn off the ceiling fixture, close the curtains, and let the screen be its own light source. If a reflection is unavoidable, angle the screen or the camera until it slides off the important part of the code.
Light the device, not the desk
When the subject is a board, a console, or a robot running your Lua script, the screen or the LEDs are the brightest thing in the frame. Expose for them and let the rest of the desk fall darker; a gentle lamp placed to one side gives the hardware some shape without competing with the display. A sheet of white paper opposite the lamp bounces a little light back into the shadow side.
Avoid firing a flash straight at a glossy screen or a shiny board — the reflection will be larger than the subject. Bounce the flash off a wall or the ceiling if you need more light.
Frame the code so it can be read
If source will be in the shot, blow up the editor font until only ten or fifteen lines fit on screen. Choose lines that show the interesting part of your Lua: a function that does something recognisable, with sensible names and no debug prints. Crop so the file name or the function name is legible, and keep the gutter and line numbers out if they add nothing.
- A hero frame: the whole device, screen lit, controller or cables in shot.
- A detail frame: the board with one LED or one connector in focus.
- A context frame: the desk, the notebook, the laptop with the .lua file open.
- A screen frame at a readable angle, showing the part of the project you are proudest of.
Shoot the object, not the output. Four frames taken deliberately — device, detail, context, and one readable piece of code — will tell a reader more about your finished Lua project than a folder of photographs of your monitor.