     if isNaN angle
       0
     else if angle > 90
-      !silent and console?.warn 'oriDomi: Maximum value is 90'
+      devMode and console.warn 'oriDomi: Maximum value is 90'
       90
     else if angle < -90
-      !silent and console?.warn 'oriDomi: Minimum value is -90'
+      devMode and console.warn 'oriDomi: Minimum value is -90'
       -90
     else
       angle

# one dimensional:
extendObj = (target, source) ->
  if source isnt Object source
    !silent and console?.warn 'oriDomi: Must pass an object to extend with'
    return target
  if target isnt Object target
    target = {}

  forceAntialiasing: false


class OriDomi

  constructor: (@el, options) ->
    devMode and console.time 'oridomiConstruction'
    return @el if !oriDomiSupport

    if !(@ instanceof OriDomi)
      return new oriDomi @el, @settings

    @settings = extendObj options, defaults

    if !@el? or @el.nodeType isnt 1
      return devMode and console.warn 'oriDomi: First argument must be a DOM element'

    {@shading, @shadingIntensity, @vPanels, @hPanels} = @settings
    @$el = $ @el if $
