Ok - icon colors are added. If camera doesn't supprt it other colors (mainly from histo) are taken. There are a few placeholders to avoid further mess in color numbers order.I made two-dimensional array for collors in both modes.I've also changed drawings module to make it consistent with current version of lua drawing commands.I think, that we should rename colors to avoid strange names like color_histo_r_play and color_ply_icon_red. There should be universal naming style, such as:color_ply_redcolor_rec_redcolor_ply_yellow_dkand so on. This is a good time to do these changes, before we need more colors. And it will be simple no name further colors.Nevertheless I still believe, that there must be canon firmware function that calculates apropriate colors from palette, since in all modes there are so many colors. Maybe if we could find this we would be able to use a kind of rgb system...
Not sure whether post it here, but I have some problems with drawings. When I set some shapes that can't be fully displayed on the screen, for example elipse with x,y=10,10 and r1,r2=20,20 some strange things appear on the screen (long rects, totally drawed screen and so on).I believe that this is because CHDK drawing codes try to poke some values to bad places in memory. Has CHDK drawing code some safety checks, whether the position of the pixel it tries to draw is still on the screen?
draw_ellipse_filled( 10, 10, 30, 30, 20)wait_click(0)
draw_line( -30, -30, 100, 100, 20)wait_click(0)
And this will cause camera hang and crash:Code: (lua) [Select]draw_line( -30, -30, 100, 100, 20)wait_click(0)
Started by flarn2006
Started by frank
Started by fabri22
Started by otosclerosi
« 1 2 3 »
Started by Adromir
General Discussion and Assistance