@@ -19,37 +19,43 @@ Logo::circleColors{{
1919// todo: create Gfx::Path, Gfx::Drawing classes
2020const Logo::Points Logo::points
2121{{
22- {56 , 0 }, {370 , 760 }, {684 , 0 }, {532 , 0 }, {370 , 425 }, {208 , 0 }, // V
23- {784 , 0 }, {784 , 752 }, {924 , 752 }, {924 , 0 }, // I
24- {1188 , 752 }, {1620 , 0 }, {1464 , 0 }, {1034 , 752 }, // Z
25- {1862 , 752 }, {2294 , 0 }, {2138 , 0 }, {1708 , 752 }, // Z
22+ {0 , 0 }, {314 , 760 }, {628 , 0 }, {476 , 0 }, {314 , 425 }, {152 , 0 }, // V
23+ {728 , 0 }, {728 , 752 }, {868 , 752 }, {868 , 0 }, // I
24+ {1132 , 752 }, {1564 , 0 }, {1408 , 0 }, {978 , 752 }, // Z
25+ {1806 , 752 }, {2238 , 0 }, {2082 , 0 }, {1652 , 752 }, // Z
2626
2727 // U
28- {2530 , 0 },
29- {2390 , 0 },
30- {2390 , 480 },
31- {2390 , 650 }, {2522 , 766 }, {2673 , 766 },
32- {2824 , 766 }, {2956 , 650 }, {2956 , 480 },
33- {2956 , 0 },
34- {2816 , 0 },
35- {2816 , 480 },
36- {2820 , 578 }, {2762 , 634 }, {2673 , 634 },
37- {2584 , 634 }, {2530 , 578 }, {2530 , 480 },
28+ {2474 , 0 },
29+ {2334 , 0 },
30+ {2334 , 480 },
31+ {2334 , 650 }, {2466 , 766 }, {2617 , 766 },
32+ {2768 , 766 }, {2900 , 650 }, {2900 , 480 },
33+ {2900 , 0 },
34+ {2760 , 0 },
35+ {2760 , 480 },
36+ {2764 , 578 }, {2706 , 634 }, {2617 , 634 },
37+ {2528 , 634 }, {2474 , 578 }, {2474 , 480 },
3838
3939 // circles
40- {1146 , 99 },
41- {1820 , 99 },
42- {1522 , 652 },
43- {2196 , 652 }
40+ {1090 , 99 },
41+ {1764 , 99 },
42+ {1466 , 652 },
43+ {2140 , 652 }
4444}};
4545
46+
47+ double Logo::height (double width)
48+ {
49+ return defaultHeight * width / defaultWidth;
50+ }
51+
4652void Logo::draw (Geom::Point pos,
4753 double width,
4854 const Gfx::ColorTransform &colorTransform)
4955{
5056 this ->index = 0 ;
5157 this ->pos = pos;
52- this ->factor = width / defaultSize ;
58+ this ->factor = width / defaultWidth ;
5359
5460 setColor (colorTransform (Gfx::Color::Black ()));
5561 canvas.setLineWidth (0 );
0 commit comments