Sha256: f31978c65ddaabaaa19f8330fdfea3631e253f7557b634bcefc764701578dea8
Contents?: true
Size: 550 Bytes
Versions: 4
Compression:
Stored size: 550 Bytes
Contents
# frozen_string_literal: true module Gruff # @private class Renderer::DashLine def initialize(renderer, color:, width:) @renderer = renderer @color = color @width = width end def render(start_x, start_y, end_x, end_y) @renderer.draw.push @renderer.draw.stroke_color(@color) @renderer.draw.fill_opacity(0.0) @renderer.draw.stroke_dasharray(10, 20) @renderer.draw.stroke_width(@width) @renderer.draw.line(start_x, start_y, end_x, end_y) @renderer.draw.pop end end end
Version data entries
4 entries across 4 versions & 1 rubygems