docstr: Sets the opacity of the foreground pattern fill. Defaults to a
  0.5 when `fillmode` is "overlay". Otherwise, defaults to 1.
  
  The 'fgopacity' property is a number and may be specified as:
    - An int or float in the interval [0, 1]
  
  Returns
  -------
  int|float
docstr_tok: ["Sets","the","opacity","of","the","foreground","pattern","fill",".","Defaults","to","a","0.5","when","`","fillmode","`","is","``","overlay","''",".","Otherwise",",","defaults","to","1",".","The","'fgopacity","'","property","is","a","number","and","may","be","specified","as",":","-","An","int","or","float","in","the","interval","[","0",",","1","]","Returns","--","--","--","-","int|float"]
code: def fgopacity(self):
      """
      Sets the opacity of the foreground pattern fill. Defaults to a
      0.5 when `fillmode` is "overlay". Otherwise, defaults to 1.
  
      The 'fgopacity' property is a number and may be specified as:
        - An int or float in the interval [0, 1]
  
      Returns
      -------
      int|float
      """
      return self["fgopacity"]
  
imports: from plotly.basedatatypes import BaseTraceHierarchyType
  import copy
label_desc: Use image node_id 9 for calling the Fillpattern obj's underlying member method code with example usage: obj.fgopacity() and returns: self