Sha256: 9e57f6ad60d8a68fe5bb7767ac54d7521fa714cd59ae133b9d6f9e840a864ae6
Contents?: true
Size: 397 Bytes
Versions: 8
Compression:
Stored size: 397 Bytes
Contents
# frozen_string_literal: true module Gruff # @private class Renderer::Polyline def initialize(color:, width:) @color = color @width = width end def render(points) draw = Renderer.instance.draw draw.push draw.stroke(@color) draw.fill('transparent') draw.stroke_width(@width) draw.polyline(*points) draw.pop end end end
Version data entries
8 entries across 8 versions & 1 rubygems