module Prawn::SVG
Constants
- FuncIRI
- Length
- Paint
- Percentage
- VERSION
Public Instance Methods
Source
# File lib/prawn/svg/paint.rb, line 44 def none? color == :none && (url.nil? || !!@unresolved_url) end
Source
# File lib/prawn/svg/paint.rb, line 48 def resolve(gradients, current_color, color_mode) if url if url[0] == '#' && gradients && (gradient = gradients[url[1..]]) return gradient else @unresolved_url = true end end case color when :currentcolor current_color when :none nil else color_mode == :cmyk ? color.to_cmyk : color end end