     if ctx.getLineDashOffset() != @cache.line_dash_offset
       ctx.setLineDashOffset(@cache.line_dash_offset)
 
+  color_value: () ->
+    color = color2rgba(@line_color.value(), @line_alpha.value())
+    return "rgba(#{color[0]*255},#{color[1]*255},#{color[2]*255},#{color[3]})"
+
 class _Fill extends _ContextProperties
 
   attrs: _.keys(mixins.fill())

    @cache_select("fill_alpha", i)
    if ctx.globalAlpha != @cache.fill_alpha
      ctx.globalAlpha = @cache.fill_alpha

class _Text extends _ContextProperties


    font_size  = @text_font_size.value()
    font_style = @text_font_style.value()
    return font_style + " " + font_size + " " + font

  color_value: () ->
    color = color2rgba(@text_color.value(), @text_alpha.value())
    return "rgba(#{color[0]*255},#{color[1]*255},#{color[2]*255},#{color[3]})"

  set_value: (ctx) ->
    ctx.font         = @font_value()
