Commit Graph

89 Commits

Author SHA1 Message Date
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
Ryan Timpe 0c235ea669 Woot! Figured out scaleable text. Use cex!!!
Next: collect 1x1 bricks into groups. Deja vu
2019-06-05 22:28:13 -04:00
Ryan Timpe dce3deb50a Restarting geom_brick functions. Beginning with a rect copy.
Next: automatic font size
2019-06-05 15:51:30 -04:00
Ryan Timpe 22620659c1 Initial commit... Definitely need to recalculate stud placement. Stacked charts don't work right now. 2019-05-12 14:38:04 -04:00
Ryan Timpe 9d9a35af18 Clean up description issues. 2019-05-12 10:29:38 -04:00
Ryan Timpe b6cac44c3d Major build issues. Checking if Master is okay... i assume no. 2019-05-11 17:30:35 -04:00
Ryan Timpe 424d429ee0 Beginning work for bricks_from_data() 2019-05-04 11:47:45 -04:00
Ryan Timpe 494dacfe46 bricks_from_excel() to allow for model creation using an Excel template. v0.0.0 2019-04-10 14:12:13 -04:00
Ryan Timpe f2db2ea126 Updated ReadMe 2019-03-29 11:28:26 -04:00
Ryan Timpe a2dfa368f5 Added a NEWS.md file! 2019-03-22 19:53:18 -04:00
Ryan Timpe bb08271bd9 Next release for bricks_from_coords() and updated README. 2019-03-22 09:31:17 -04:00
Ryan Timpe a4f758e9d4 Lightened the brick sides from 75% of color to 90% 2019-03-18 12:09:59 -04:00
Ryan Timpe 2ff0b037a8 First pass at bricks_from_coords(). Need to create a bricks_from_() function for duplicate procedures. 2019-03-17 17:42:39 -04:00
Ryan Timpe ffdc114c08 Fixed missing logo 2019-03-15 11:16:41 -04:00
Ryan Timpe 988187058e Hide additional development scripts 2019-03-15 10:56:44 -04:00
Ryan Timpe 229ec9ada8 Small updates for initial release 2019-03-15 10:56:04 -04:00
Ryan Timpe 97a5f9c118 The color update! display_colors() shows allowed color names and ID. Uses {brickr} color ID #s instead of LEGO. Error messag for wrong colors. 2019-03-14 17:39:25 -04:00
Ryan Timpe 2b28803d91 Additional animation parameters for shifting xyz 2019-03-14 16:44:16 -04:00
Ryan Timpe c134fa0ac4 Animation options for incrementing and cutting off x, y, z 2019-03-14 16:42:56 -04:00
Ryan Timpe 37f7f5430c Initial ReadMe work. 2019-03-13 18:07:35 -04:00
Ryan Timpe 10c607a669 Initial work to make animations more accessible 2019-03-13 17:30:14 -04:00
Ryan Timpe 149138d6d9 Added more brick groups with offsets. Slightly slower collect_bricks() but reduces the final brick count. Probably a more elegant way to do this. 2019-03-10 12:22:51 -04:00
Ryan Timpe bd4cc5df40 Moved collect_bricks() to a new script as it's used in both Mosaics and 3D Models 2019-03-10 11:30:18 -04:00
Ryan Timpe 488d231d22 Initial functions for 3D brick models. Super basic right now. 2019-03-09 21:10:39 -05:00
Ryan Timpe 655eba94e4 Changed package name to {brickr} 2019-03-08 16:39:11 -05:00
Ryan Timpe 5fef7617f4 Final set of original 2D and 3D mosaic functions added to pkg. 2019-03-08 16:26:22 -05:00
Ryan Timpe 80351b418a Pkg functions to view 2D mosaics and instructions 2019-03-07 17:48:32 -05:00
Ryan Timpe da66a17cac Updates to the core functions to allow for 3D rendering of non-images later. Specifically, the "level" or z metric 2019-03-05 22:49:50 -05:00
Ryan Timpe ba3686a9c3 Additional pkg development work... through collect_bricks() 2019-03-04 15:30:26 -05:00
Ryan Timpe 8ceac8eab7 Initial pkg development 2019-03-03 14:06:33 -05:00
Ryan Timpe 603289bf77 Updated ReadMe for better 3D preview image 2019-03-03 12:42:38 -05:00
Ryan Timpe 6efb74e847 The outer edges of the mosaic are now brick-colored!
Default base color is "medium stone grey" but can be altered.
2019-03-01 22:59:03 -05:00
Ryan Timpe b2236e8487 Closes Issue #2
Change how I calculate which x-y stud belongs to which brick. This removes the bug where some studs were getting multiple bricks.
2019-03-01 16:13:07 -05:00
Ryan Timpe d40e83bba6 Use LEGO color csv on github if not local.
Reduce package dependencies.
2019-02-25 09:09:22 -05:00
Ryan Timpe 6a37fccc27 Easter egg to swap color channels 2019-02-21 15:17:01 -05:00
Ryan Timpe 37cc75945f Added a 'brightness' option to scale_image(). 2019-02-21 14:52:04 -05:00
Ryan Timpe 448ae5ba72 3D and BW themed mosiacs (+ typos) 2019-02-17 14:30:21 -05:00
Ryan Timpe 251d08cd1a Updated demo options 2019-02-17 13:54:20 -05:00
Ryan Timpe 61af1463e3 Fixed bug in instructions generation 2019-02-17 13:54:08 -05:00
Ryan Timpe 384152baff Updated README for 3D and BW 2019-02-17 13:53:09 -05:00
Ryan Timpe db8c17bff7 Contrast option for theme = "bw" 2019-02-17 12:42:36 -05:00
Ryan Timpe 7460127421 Added theme="bw" option to legoize() for greyscale mosaic using 4 colors. Similar to LEGO Mosaic Maker product. Bypass the normal matching algorithm, so this is faster. 2019-02-15 12:06:04 -05:00
Ryan Timpe 7e174e1e41 Fixed the value of zscale in display_3d() 2019-02-14 15:15:02 -05:00
Ryan Timpe 41354cd2ed Easier to read 2019-02-14 14:55:05 -05:00
Ryan Timpe 76db9ad837 Shortcut to display the 3D mosaic 2019-02-14 14:47:35 -05:00