class_resourceimportersvg.rst 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/ResourceImporterSVG.xml.
  6. .. _class_ResourceImporterSVG:
  7. ResourceImporterSVG
  8. ===================
  9. **Inherits:** :ref:`ResourceImporter<class_ResourceImporter>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Imports an SVG file as a scalable texture for use in 2D or 3D rendering.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This importer imports :ref:`SVGTexture<class_SVGTexture>` resources. See also :ref:`ResourceImporterTexture<class_ResourceImporterTexture>` and :ref:`ResourceImporterImage<class_ResourceImporterImage>`.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-------------------------------------+------------------------------------------------------------------+----------+
  21. | :ref:`float<class_float>` | :ref:`base_scale<class_ResourceImporterSVG_property_base_scale>` | ``1.0`` |
  22. +-------------------------------------+------------------------------------------------------------------+----------+
  23. | :ref:`Dictionary<class_Dictionary>` | :ref:`color_map<class_ResourceImporterSVG_property_color_map>` | ``{}`` |
  24. +-------------------------------------+------------------------------------------------------------------+----------+
  25. | :ref:`bool<class_bool>` | :ref:`compress<class_ResourceImporterSVG_property_compress>` | ``true`` |
  26. +-------------------------------------+------------------------------------------------------------------+----------+
  27. | :ref:`float<class_float>` | :ref:`saturation<class_ResourceImporterSVG_property_saturation>` | ``1.0`` |
  28. +-------------------------------------+------------------------------------------------------------------+----------+
  29. .. rst-class:: classref-section-separator
  30. ----
  31. .. rst-class:: classref-descriptions-group
  32. Property Descriptions
  33. ---------------------
  34. .. _class_ResourceImporterSVG_property_base_scale:
  35. .. rst-class:: classref-property
  36. :ref:`float<class_float>` **base_scale** = ``1.0`` :ref:`🔗<class_ResourceImporterSVG_property_base_scale>`
  37. SVG texture scale. ``1.0`` is the original SVG size. Higher values result in a larger image.
  38. .. rst-class:: classref-item-separator
  39. ----
  40. .. _class_ResourceImporterSVG_property_color_map:
  41. .. rst-class:: classref-property
  42. :ref:`Dictionary<class_Dictionary>` **color_map** = ``{}`` :ref:`🔗<class_ResourceImporterSVG_property_color_map>`
  43. If set, remaps SVG texture colors according to :ref:`Color<class_Color>`-:ref:`Color<class_Color>` map.
  44. .. rst-class:: classref-item-separator
  45. ----
  46. .. _class_ResourceImporterSVG_property_compress:
  47. .. rst-class:: classref-property
  48. :ref:`bool<class_bool>` **compress** = ``true`` :ref:`🔗<class_ResourceImporterSVG_property_compress>`
  49. If ``true``, uses lossless compression for the SVG source.
  50. .. rst-class:: classref-item-separator
  51. ----
  52. .. _class_ResourceImporterSVG_property_saturation:
  53. .. rst-class:: classref-property
  54. :ref:`float<class_float>` **saturation** = ``1.0`` :ref:`🔗<class_ResourceImporterSVG_property_saturation>`
  55. Overrides texture saturation.
  56. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  57. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  58. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  59. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  60. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  61. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  62. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  63. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  64. .. |void| replace:: :abbr:`void (No return value.)`