PngRenderer = require './png_renderer'

    class PngGround extends PngRenderer

      do_render: (ctx, path) =>
        cell_width  = @config.width
        cell_height = @config.height

        ground_segments = @config.ground.segments
        segment_width   = 1 / ground_segments
        ground_width    = cell_width * segment_width

        fill_segment = (block, segment, height, color) =>
          right  = segment * (cell_width * segment_width)
          left   = (cell_width * block.x) + right
          top    = (cell_height * (block.y + 1)) - height

          ctx.fillStyle = color

          ctx.beginPath()
          ctx.rect left, top, ground_width, height
          ctx.fill()

        for step in path
          for g, i in step.ground
            fill_segment step, i, g.thickness * @config.multiplier, @config.ground.fill_color

    module.exports = PngGround


Update floor thickness rendering to make more sense visually
PngRenderer = require './png_renderer'

    class PngGround extends PngRenderer

      do_render: (ctx, path) =>
        cell_width  = @config.width
        cell_height = @config.height

        ground_segments = @config.ground.segments
        segment_width   = 1 / ground_segments
        ground_width    = cell_width * segment_width

        fill_segment = (block, segment, height, color) =>
          right  = segment * (cell_width * segment_width)
          left   = (cell_width * block.x) + right
          top    = (cell_height * (block.y + 1)) - height

          ctx.fillStyle = color

          ctx.beginPath()
          ctx.rect left, top, ground_width, height
          ctx.fill()

        for step in path
          for g, i in step.ground
            fill_segment step, i, (g.thickness * @config.multiplier) * 0.5, @config.ground.fill_color

    module.exports = PngGround