{"id":27938541,"url":"https://github.com/willowtreeapps/maple-mosaic","last_synced_at":"2025-05-07T08:49:10.169Z","repository":{"id":66754508,"uuid":"508090016","full_name":"willowtreeapps/maple-mosaic","owner":"willowtreeapps","description":"Our in-office Lego wall - scripts for building out the images and printouts.","archived":false,"fork":false,"pushed_at":"2024-07-30T22:47:48.000Z","size":860,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":86,"default_branch":"main","last_synced_at":"2024-07-31T02:27:12.345Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willowtreeapps.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-27T23:22:40.000Z","updated_at":"2024-07-30T22:47:52.000Z","dependencies_parsed_at":"2024-04-17T20:49:47.700Z","dependency_job_id":"f424721a-03a3-4e3b-ad58-e62450d8286e","html_url":"https://github.com/willowtreeapps/maple-mosaic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willowtreeapps%2Fmaple-mosaic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willowtreeapps%2Fmaple-mosaic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willowtreeapps%2Fmaple-mosaic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willowtreeapps%2Fmaple-mosaic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willowtreeapps","download_url":"https://codeload.github.com/willowtreeapps/maple-mosaic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252847235,"owners_count":21813438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-07T08:49:08.844Z","updated_at":"2025-05-07T08:49:10.151Z","avatar_url":"https://github.com/willowtreeapps.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## The Maple Mosaic\nAn in-office Lego wall where a pixel image is built by people over time using 16x16 baseplates and 2x2 bricks. The current wall exists as a 144x144-stud wall, separated into 81 16x16-stud sections. The wall uses 20 common Lego colors, but may expand in the future to add more colors. Since we're using 2x2 bricks, the wall supports a 72x72 pixel image.\n\n## The Scripts Behind It\nThe scripts in this repo are used to create the image and instructions for the Maple Mosaic.\n\n### 1. Legoizer\n\nFirst, a Ruby script is used to take any ol' image and turn it into its closest Lego colors, using the 20 colors we've defined.\n\nOne important step here is to use a pixel color counter - e.g. https://townsean.github.io/canvas-pixel-color-counter/ - to check how many bricks you'll need. We currently have 1200 bricks per color available.\n\n### 2. Baseplates\n\nNext, a Python script is used to take the Legoized image and split it into 16x16 baseplates. This script will generate a set of instructions for each baseplate, in the form of an image file.\n\n\u003cdetails\u003e\n\u003csummary\u003eDeprecated\u003c/summary\u003e\nPerviously, a JavaScript script wass used in Photoshop to parse the image into individual instruction sheets.\n\u003c/details\u003e\n\nThese sheets can then be printed out 4 per page and set up at the mosaic wall.\n\nTo print sheets, you can use a tool to combine images into a PDF. Some options include:\n- Preview.app\n  - Open all images in Preview\n  - Select all in  the sidebar\n  - Print\n  - Expand Layout options and select 4 or 6 per page\n- The [Multiple Images to PDF](https://workspace.google.com/marketplace/app/multiple_images_to_pdf/650660206328) chrome extension. Left and Top Margins set to 0, Fit pdf page to image size, and then use Preview to print 4 or 6 to a page.\n\n## The Colors\nLego colors are _generally_ a fool's errand as there are differences in their hues, naming, etc. We're using hex codes from https://rebrickable.com/colors/ here. Colors are defined in `colors.yml`, which is used by both scripts.\n\nOur colors:\n```\n0  Black:               5,19,29         #05131D\n1  Dark Bluish Gray:    108,110,104     #6C6E68 (Lego 'Dark Stone Grey')\n2  Light Bluish Gray:   160,165,169     #A0A5A9 (Lego 'Medium Stone Grey')\n3  White:               255,255,255     #FFFFFF\n4  Red:                 201,26,9        #C91A09 (Lego 'Bright Red')\n5  Yellow:              242,205,55      #F2CD37 (Lego 'Bright Yellow')\n6  Green:               35,120,65       #237841 (Lego 'Dark Green')\n7  Blue:                0,85,191        #0055BF (Lego 'Bright Blue')\n8  Orange:              254,138,24      #FE8A18 (Lego 'Bright Orange')\n9  Reddish Brown:       88,42,18        #582A12\n10 Tan:                 228,205,158     #E4CD9E (Lego 'Brick Yellow')\n11 Bright Pink:         228,173,200     #E4ADC8\n12 Dark Blue:           10,52,99        #0A3463\n13 Dark Pink:           200,112,160     #C870A0 (Lego 'Bright Purple')\n14 Dark Purple:         63,54,145       #3F3691 (Lego 'Medium Lilac')\n15 Dark Tan:            149,138,115     #958A73 (Lego 'Sand Yellow')\n16 Lime:                187,233,11      #BBE90B (Lego 'Bright Yellowish Green')\n17 Medium Azure:        54,174,191      #36AEBF\n18 Medium Blue:         90,147,219      #5A93DB\n19 Medium Nougat:       170,125,85      #AA7D55\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillowtreeapps%2Fmaple-mosaic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillowtreeapps%2Fmaple-mosaic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillowtreeapps%2Fmaple-mosaic/lists"}