Sha256: 2416da50f778a5e7b50d3dd311c19ddeef4cabe835257f42e99fecd4233019e8
Contents?: true
Size: 455 Bytes
Versions: 10
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true module Gruff # @private class Renderer::Bezier def initialize(renderer, color:, width: 1.0) @renderer = renderer @color = color @width = width end def render(points) @renderer.draw.push @renderer.draw.stroke(@color) @renderer.draw.stroke_width(@width) @renderer.draw.fill_opacity(0.0) @renderer.draw.bezier(*points) @renderer.draw.pop end end end
Version data entries
10 entries across 10 versions & 1 rubygems