CHDK/Grids

=Grids=


 * CHDK (build 136 or later) allows you to custom design your own composition grids. Small files may be saved in a CHDK/GRIDS/ sub-folder and called up for use with the OSD Parameters menu option of "Grid Settings".

Graphic Commands

 * Format of grid file for CHDK:


 * @title
 * @line  x0, y0, x1, y1, lineColor
 * @rect  x0, y0, x1, y1, borderColor
 * @rectf x0, y0, x1, y1, borderColor, fillColor
 * @elps  x0, y0, rx, ry, borderColor
 * @elpsf x0, y0, rx, ry, fillColor


 * All numbers can be either decimal or hex.

Golden Grids
This layout expands on the more simple demo golden-ratio grids. It adds in the triangular ratio's for all 4 corners as well as a smaller subset of spiraling rectangles denoting lobes of a golden-spiral. Suggested filename: "golden3.grd". The colors were chosen for an S3 IS, you may need to change the colors for yours. I left spaces between each batch of lines being drawn, each section being upper-left, upper-right, lower-left, and lower-right, in case you want to tweak them for position or color, it'll be easier to find each section. The blocks are: tic-tac-toe grid (4 lines, color 13), golden-triangles (8 lines, color 7), and then the spiraling rectangles (16 lines, color 5). @title Golden Grids @line 0,  92,  359, 92,  13 @line 0,  148, 359, 148, 13 @line 138, 0,  138, 239, 13 @line 222, 0,  222, 239, 13

@line 0,  0,   138, 92,  7 @line 138, 0,  85,  92,  7

@line 359, 0,  222, 92,  7 @line 222, 0,  274, 92,  7

@line 0,  239, 138, 148, 7 @line 138, 239, 85, 148, 7

@line 359, 239, 222, 148, 7 @line 222, 239, 274, 148, 7

@line 85, 0,   85,  92,  5 @line 85, 57,  138, 57,  5 @line 105, 57, 105, 92,  5 @line 85, 70,  105, 70,  5

@line 274, 0,  274, 92,  5 @line 222, 57, 274, 57,  5 @line 254, 57, 254, 92,  5 @line 254, 70, 274, 70,  5

@line 85, 148, 85,  239, 5 @line 85, 183, 138, 183, 5 @line 105, 148, 105, 183, 5 @line 85, 170, 105, 170, 5

@line 274, 148, 274, 239, 5 @line 222, 183, 274, 183, 5 @line 254, 148, 254, 183, 5 @line 254, 170, 274, 170, 5

Color Test
I couldn't find any rhyme nor reason to the Color Palette numbers and those used in these grid layouts, so I wrote a little grid that displays 36 of the available colors. Perhaps someone can clarify what numbers mean what colors, and selecting them could be simpler. I noticed too that diagonal lines hitting the smaller EVF/LCD pixels can change their colors greatly. To figure out what color is displayed for which number, count them off in your viewfinder. Color 1 starting ON the left border, color 37 on the right border.

Save as "colortest.grd"

@title Colors Test @line 0,  0, 0,   239, 1 @line 10, 0, 10,  239, 2 @line 20, 0, 20,  239, 3 @line 30, 0, 30,  239, 4 @line 40, 0, 40,  239, 5 @line 50, 0, 50,  239, 6 @line 60, 0, 60,  239, 7 @line 70, 0, 70,  239, 8 @line 80, 0, 80,  239, 9 @line 90, 0, 90,  239, 10 @line 100, 0, 100, 239, 11 @line 110, 0, 110, 239, 12 @line 120, 0, 120, 239, 13 @line 130, 0, 130, 239, 14 @line 140, 0, 140, 239, 15 @line 150, 0, 150, 239, 16 @line 160, 0, 160, 239, 17 @line 170, 0, 170, 239, 18 @line 180, 0, 180, 239, 19 @line 190, 0, 190, 239, 20 @line 200, 0, 200, 239, 21 @line 210, 0, 210, 239, 22 @line 220, 0, 220, 239, 23 @line 230, 0, 230, 239, 24 @line 240, 0, 240, 239, 25 @line 250, 0, 250, 239, 26 @line 260, 0, 260, 239, 27 @line 270, 0, 270, 239, 28 @line 280, 0, 280, 239, 29 @line 290, 0, 290, 239, 30 @line 300, 0, 300, 239, 31 @line 310, 0, 310, 239, 32 @line 320, 0, 320, 239, 33 @line 330, 0, 330, 239, 34 @line 340, 0, 340, 239, 35 @line 350, 0, 350, 239, 36 @line 359, 0, 359, 239, 37