Sha256: ca708af9c3b921a50eed1ffc210f3b45bb3cb3d342ba9a0f05d71c7a9b097a6e
Contents?: true
Size: 555 Bytes
Versions: 12
Compression:
Stored size: 555 Bytes
Contents
# frozen_string_literal: true module Gruff # @private class Renderer::Polyline def initialize(renderer, color:, width: 1.0, linejoin: 'bevel') @renderer = renderer @color = color @width = width @linejoin = linejoin end def render(points) @renderer.draw.push @renderer.draw.stroke_linejoin(@linejoin) @renderer.draw.stroke_width(@width) @renderer.draw.stroke(@color) @renderer.draw.fill('transparent') @renderer.draw.polyline(*points) @renderer.draw.pop end end end
Version data entries
12 entries across 12 versions & 1 rubygems