Commit Graph

133 Commits

Author SHA1 Message Date
Ryan Timpe
bdeeede068 OKay this probably fixes the build issue. 2019-07-22 13:40:49 -04:00
Ryan Timpe
46aa75358f Better docs for the collate issue. 2019-07-22 13:36:08 -04:00
Ryan Timpe
6e4d7fc620 Additional fixes but not sure why collate issues on build. 2019-07-22 13:29:30 -04:00
Ryan Timpe
8e3cdbb5ca Add collect_brick's use_bricks input to geom_brick_rect 2019-07-21 13:18:03 -04:00
Ryan Timpe
70b159de1e Bunch of minor fixes:
* Again, better detection for flipped coords
* Luminance calculation to determine if brick should have white or grey details.
* More documentation
2019-07-20 13:53:57 -04:00
Ryan Timpe
f93756f0e2 Big updates to documentation. Longggg way to go. 2019-07-19 11:32:09 -04:00
Ryan Timpe
d20c3f8720 Default to no grid lines. Might be too busy. 2019-07-18 11:24:41 -04:00
Ryan Timpe
d84889e1d5 Bug fixes with color and the stupid Levels 2019-07-17 18:50:25 -04:00
Ryan Timpe
63c3abd9c8 See last commit. 2019-07-16 15:43:37 -04:00
Ryan Timpe
5c7be4019b ANy bricks with brightness <=300 (dark stone grey) have white stud outlines. Might want to change this so red doesn't have white. 2019-07-16 15:42:37 -04:00
Ryan Timpe
632c68e4b7 Major progress on geom_brick and color updates.
TODO: Update the themes excel file.
2019-07-15 22:09:41 -04:00
Ryan Timpe
9e1e38cc13 Updated color data. Includes two new colors, but also new brickrID numbers. 2019-07-15 22:08:29 -04:00
Ryan Timpe
cf2de4973f LEGO color themes with scale_brick and theme_brick.
BUT need to go back and update official colors
2019-07-15 17:57:14 -04:00
Ryan Timpe
eada240501 No more coord$is_flipped. Instead, for flipped, is_linear() returns "flipped" instead of T/F. Definitely a hack, but now you can opt not to use coord_brick... not that you should. 2019-07-13 15:29:22 -04:00
Ryan Timpe
595fbb070c Negative bars! 2019-07-12 14:27:21 -04:00
Ryan Timpe
f698bbe0b6 ToDo list in NEWS.md
coord_brick_flip()
2019-07-09 15:34:03 -04:00
Ryan Timpe
7dc0360434 Improved knob rendering! No more shaded knobs. 2019-07-09 14:14:10 -04:00
Ryan Timpe
ef7e24b2c1 Brick_size changed to brick_res 2019-07-08 15:06:18 -04:00
Ryan Timpe
f0213a9102 offset_edge feature for HD bricks. Increases pixels between bricks, but still only 1 dark pixel, so bricks are brighter. 2019-07-07 13:21:10 -04:00
Ryan Timpe
73b475dd03 Edits to text size calculation and the threshold for appearing. Since bar charts arent square mosaics, the n() threshold didn't work. 2019-07-06 13:40:48 -04:00
Ryan Timpe
a5b3b9b00e Various color edits. Removed double-knob rendering with two_knob = F. 2019-07-06 13:02:44 -04:00
Ryan Timpe
3159fb3c40 draw_key_brick()
Still needs a lot of documentation
2019-07-06 09:48:43 -04:00
Ryan Timpe
516a4ec399 Fixed bug when entire column is just fractional brick.
Added the 1-knob option for skinny bricks.
2019-07-04 11:18:49 -04:00
Ryan Timpe
1fb9a83c70 coord_brick()! 2019-07-03 16:50:01 -04:00
Ryan Timpe
a0daf3a7bb Fixed bug with bad rendering with stacked/dodged. but its ugly and probably wrong 2019-07-03 16:23:32 -04:00
Ryan Timpe
a9cb47c061 More bug fixes! 2019-07-01 14:03:46 -04:00
Ryan Timpe
31c28c1156 A few bug fixes before pushing. 2019-07-01 12:59:50 -04:00
Ryan Timpe
c295ab29e6 geom_brick_col()!
Needs a lot of work:
- Split columns in 2x4s
- option for 1-brick wide if skinny
- Coord_lego because coordinates are wonky
2019-06-30 18:32:41 -04:00
Ryan Timpe
dd3cca2e50 Complete rewrite of collect_bricks(). Functional collection rather than manual. can be any brick sizes. 2019-06-29 15:54:06 -04:00
Ryan Timpe
0e56889652 Cleaned up the viewport calculations 2019-06-23 17:02:51 -04:00
Ryan Timpe
3b9f4e1973 Embossed text sizes based on INITIAL drawing, so this looks good in the original preview window and ggsave. But not when you open a rendered plot in a new window 2019-06-22 13:48:28 -04:00
Ryan Timpe
e1ce8d4201 Lighten knob outline and embossed text for dark bricks. 2019-06-21 13:26:03 -04:00
Ryan Timpe
b6010d668e Woot I think I found the correct sizing the embossed knob text 2019-06-20 14:54:52 -04:00
Ryan Timpe
16422a4b0c Solved the missing resizingTextGrob() problem. No clue how.
Text still needs formatting.
2019-06-20 14:23:57 -04:00
Ryan Timpe
afebdef963 Added two more 2x2 nudges...
This needs to be more elegant eventually.
2019-06-19 15:18:38 -04:00
Ryan Timpe
e18bd6ddf2 About a million bug fixes:
* Reduced geom to just one proto with grob tree.
* Another iteration for diameter calculations...
* better shadow nudging
* Knobs show up with negative diffs
* Ignore 0 diffs for diameter calc
* STILL TEXT IS MISSING
2019-06-18 16:04:40 -04:00
Ryan Timpe
60e1db0adb brickr HD - The darkness of the space between 3D bricks is dependent on the resolution, since the gap gets smaller. 2019-06-18 16:02:50 -04:00
Ryan Timpe
ce948ebcc6 User-specified 3D brick resolution. Defaults to 15px per side (default from before). 30 looks good. 2019-06-13 15:39:17 -04:00
Ryan Timpe
0ef3fbc5df Bug fix: Knob diameter dependent on x, y sorting. 2019-06-10 14:12:40 -04:00
Ryan Timpe
24069163e1 Bug fix in the brick collection updates. 2019-06-10 10:05:15 -04:00
Ryan Timpe
95f533c1b2 display_set() now uses geom_brick_rect(). This uncovered a bug with expand = FALSE, so had to rewrite the diameter calc in geom_brick() 2019-06-07 16:28:42 -04:00
Ryan Timpe
3e4f27e8dc Beginning of work for geom_brick_points() 2019-06-07 16:27:39 -04:00
Ryan Timpe
fbd69f58f8 BUG:
Knobs not changing with scale_fill_manual and no aes(fill).
2019-06-07 13:41:19 -04:00
Ryan Timpe
6f43f336e3 ggproto documentation 2019-06-07 11:56:12 -04:00
Ryan Timpe
95ca17ec3c Change geom name to geom_brick_*() to allow for different brick geoms 2019-06-07 11:53:05 -04:00
Ryan Timpe
9ac0458f9e Reduce the simplified threshold value, but only apply it to the text. CircleGrob doesn't slow down the rendering. 2019-06-06 19:20:41 -04:00
Ryan Timpe
95ec92ebe0 Nudge all brick collection calculations to the right and up. This reduces the # of smaller bricks. A 24x24 is now only comprised of 2x4 bricks. As it should be. 2019-06-06 18:49:40 -04:00
Ryan Timpe
7aaa07293f Collect bricks. This is done by a hack runnign the collect_bricks() function inside of the geom. Addresses the issue that the brick grob and the knob grob need the same data. 2019-06-06 18:29:05 -04:00
Ryan Timpe
04eb27bc6d Drawing is slow for big mosaics. Added simplified_threshold input to suppress shadow and embossed text on mosaics over 48*48 2019-06-06 16:44:26 -04:00
Ryan Timpe
985af2abd5 Fixed awkward knob sizes at larger scales using resolution(). Drawing is slow at the standard 48x48 scale -_- 2019-06-06 16:17:51 -04:00