JP's Blog

  • GitHub * Flickr * Resume
  • Programming
  • Maker
  • Reviews
  • Photography
  • Home Automation
  • Writing
  • Research
  • Search
  • RSS

Programming, Topic: Rendering

All posts

  • 2025-12-04: AoC 2025 Day 4: Fade Awayinator

Recent posts

AoC 2025 Day 4: Fade Awayinator

2025-12-04

Source: Day 4: Printing Department

Full solution for today (spoilers!).

  • Source: Day 4: Printing Department
  • Part 1
  • Part 2
  • Part 2 - No Map
  • Rendering
    • register_render
    • render_image!(width, height, filename, f)
    • render_frame!(width, height, f)
  • Rendering Part 2
  • [Edit] Part 2 - Floodfill
  • Benchmarks

Part 1

Given a grid of solid @ and empty cells ., count how many solid cells have less than 4 neighbors.

read more...

  • All posts: By Date
  • All posts: By Tag
  • RSS: All
  • RSS: programming

All posts unless otherwise mentioned are licensed under Creative Commons License

Any source code unless otherwise mentioned is licensed under the 3 clause BSD license