Documentation
¶
Overview ¶
Command swipecardprobe shows a SwipeArea in card mode (#989) on a real painter: drag the card left or right, or up or down, and release.
-auto drags the card by -dx, -dy without a finger, saves a capture to -shot and exits, to check the painters draw the card where the software painter does (the centre moved by the drag, tilted clockwise when dragged right):
go run ./hack/swipecardprobe -auto -dx 150 -shot /tmp/webgpu.png go run -tags gl ./hack/swipecardprobe -auto -dx 150 -shot /tmp/gl.png
-composite puts a label below a coloured block instead of one rectangle, to see how a card made of several objects tilts (#997). With -auto it also paints the window with the software painter, the reference for where each object goes, and prints how far the label's glyphs are from where it draws them:
go run ./hack/swipecardprobe -auto -composite -dx 150 go run -tags gl ./hack/swipecardprobe -auto -composite -dx 150