Sha256: ee6ad35387af8d51f13e3adbf8445354b12862b59d0bba54002699d9f053e476
Contents?: true
Size: 394 Bytes
Versions: 6
Compression:
Stored size: 394 Bytes
Contents
# frozen_string_literal: true module Gruff class Renderer::Bezier def initialize(args = {}) @color = args[:color] @width = args[:width] || 1.0 end def render(points) draw = Renderer.instance.draw draw.push draw.stroke(@color) draw.stroke_width(@width) draw.fill_opacity(0.0) draw.bezier(*points) draw.pop end end end
Version data entries
6 entries across 6 versions & 1 rubygems