Sha256: 91cc5b59ac36ec7908461c40e3f4212878074896344f89a8ffcb8f17be8fcb27
Contents?: true
Size: 811 Bytes
Versions: 1
Compression:
Stored size: 811 Bytes
Contents
# frozen_string_literal: true class Shoes class Arc < Common::ArtElement # angle is the gradient angle used across all art elements # angle1/2 are the angles of the arc itself! style_with :angle1, :angle2, :art_styles, :center, :common_styles, :dimensions, :radius, :wedge STYLES = { wedge: false, fill: Shoes::COLORS[:black] }.freeze def create_dimensions(left, top, width, height, angle1, angle2) @style[:angle1] = angle1 || @style[:angle1] || 0 @style[:angle2] = angle2 || @style[:angle2] || 0 left ||= @style[:left] || 0 top ||= @style[:top] || 0 width ||= @style[:width] || 0 height ||= @style[:height] || 0 @dimensions = Dimensions.new parent, left, top, width, height, @style end def wedge? wedge end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-core-4.0.0.rc1 | lib/shoes/arc.rb |