Commit Graph

31 Commits

Author SHA1 Message Date
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 61af1463e3 Fixed bug in instructions generation 2019-02-17 13:54:08 -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 76db9ad837 Shortcut to display the 3D mosaic 2019-02-14 14:47:35 -05:00
Ryan Timpe ace5094ad6 3D mosaics! 2019-02-14 14:41:18 -05:00
Ryan Timpe 42da5f331f Return "Brick ID" data frame as part of collect_bricks() output. TO be used for the 3D mosaics. 2019-02-13 14:41:01 -05:00
Ryan Timpe 8fc09cfa49 Increase color matching speed by rounding color values to nearest 0.05 and then matching on the unique values. 2019-02-09 17:54:00 -05:00
Ryan Timpe 130362680a Convert image size to integer 2018-05-05 13:10:04 -04:00
Ryan Timpe 01229b0874 Removed bug to stop cropping wide images 2018-05-05 13:04:32 -04:00
Ryan Timpe 9930409fb8 Override bad input for the # of steps. 2018-05-04 19:05:40 -04:00
Ryan Timpe 721c1c6204 Default # of instruction steps to 6 2018-05-04 19:03:35 -04:00
Ryan Timpe 2c6f062002 Stacked mosaics default to x 2 brick sizes... more common and stable than the 1-stud thick bricks. 2018-05-04 16:41:23 -04:00
Ryan Timpe 2de3019815 Typo =) 2018-05-04 16:34:24 -04:00
Ryan Timpe 8fbc5286e3 Unique display for plotting piece count for stacked mosaics. 2018-05-04 16:32:29 -04:00
Ryan Timpe 3860eea705 Improved coord_fixed ratio for instructions for stacked bricks. 2018-05-04 16:13:08 -04:00
Ryan Timpe 5ecf587258 Stacked pieces now staggered 2018-05-04 12:14:13 -04:00
Ryan Timpe 88feca6933 Stacked mosaics, but need to stagged bricks so not directly above each other. 2018-05-04 12:05:39 -04:00
Ryan Timpe 2151b8efb7 Moved mosaic_type input to Collect_bricks() 2018-05-04 11:54:01 -04:00
Ryan Timpe c7131ae396 Generate rectangular mosaics by passing a c(Width, Length) to the img_size input in scale_image(). 2018-05-04 11:33:43 -04:00
Ryan Timpe d626194d24 display_pieces() draws each needed piece and the amount required. 2018-05-04 10:54:03 -04:00
Ryan Timpe 27eb0c1736 Piece counting moved to the collect_bricks function. New table_pieces() function prints a table. Will add display pieces. 2018-05-03 16:17:57 -04:00
Ryan Timpe 7703bc06c5 Piece counting is now a function 2018-05-03 15:56:41 -04:00
Ryan Timpe b772a99e29 'generate_instructions()' now displays the image of the instructions, rather than returning a data frame. 2018-05-03 15:30:43 -04:00
Ryan Timpe e013bc6b20 Each function now returns a list object, storing some metadata with each image. This will be used for the option to create a "stacked" mosaic rather than flat. 2018-05-03 15:28:06 -04:00
Ryan Timpe d46465aa70 Functions stored in 0_Functions. Run functions using 0_CreateMosaic 2018-04-22 16:21:53 -04:00