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