๐Ÿ“š
DimX Bonfire & Sparks
  • ๐Ÿ‘‹Welcome to Bonfire
  • ๐ŸŽŸ๏ธFundamentals
    • ๐Ÿ› ๏ธGetting Started
      • ๐Ÿ“˜Bonfire Tutorial Videos
      • โšกSupercharge Your Workflow with ChatGPT for Bonfire
      • ๐Ÿ“ฆInstallation Instructions
      • ๐Ÿ‘ชAccount Setup
      • ๐Ÿš€The Bonfire Launcher
      • ๐ŸŽฎInterface Guide and Controls
      • ๐ŸงฑCore Concepts
      • โฌ‡๏ธDownloading Spark Content
      • ๐Ÿ–ฅ๏ธPlatform Support
      • ๐Ÿ“–Bonfire Lite vs Pro
    • ๐Ÿ”จBuilder
      • ๐ŸงฐStart Building
      • ๐Ÿ“–Menu
      • ๐Ÿ”งThe Toolbar
      • ๐ŸชŸPanels
      • ๐Ÿง™โ€โ™‚๏ธBuilt-in Content
      • ๐Ÿง™โ€โ™‚๏ธUser-Generated Content
      • ๐ŸƒBehavior Nodes
      • โ„น๏ธTraits
      • ๐Ÿ—’๏ธPresets
    • โ–ถ๏ธPlayer
    • ๐Ÿ—บ๏ธMapifier
    • ๐ŸŒฉ๏ธSparkifier
    • โšกSparks
  • ๐Ÿ”ฅEmber
    • Base API
    • Extended API
      • Intrinsics
        • InvokeOutput
        • Mod
        • SparkRef
      • Return Types
        • Spark (ValMap)
          • Traits (ValMap)
    • Important Notes and Best Practices
  • โ›๏ธDiving Deeper
    • Bonfire Best Practices
    • Workarounds
    • Tips and Tricks
  • Release Notes
    • Bonfire v1.18.8.1
    • Bonfire v1.18.7.3
    • Bonfire v1.18.6
    • Bonfire v1.18.5
    • Bonfire v1.18.4
    • Bonfire v1.18.3
    • Bonfire v1.18.2
    • Bonfire v1.18.1
    • Bonfire v1.18.0
    • Bonfire v1.17.0
    • Bonfire v1.16.0
    • Bonfire v1.15.0
  • Links
    • Support Site
    • Bonfire Tutorial Videos Playlist
Powered by GitBook
On this page
  • Syntax
  • Description
  • Sample Usage
  • Adjust the color trait of a spark called "Spark 1"

Was this helpful?

  1. Ember
  2. Extended API
  3. Intrinsics

Mod

Syntax

mod(โ€œ[spark instance name]โ€, โ€œ[trait display name]โ€, [value])

Return: void

Description

Used for cases where sparkref is overkill. It uses next to no memory and is โ€œon-demand,โ€ meaning it is slower than sparkref but only at scale. The performance hit should be minimal if you are not doing more than ten or more of these in a row.

Sample Usage

Adjust the color trait of a spark called "Spark 1"

mod("Spark 1", "Color", "(1,1,1,1)")

PreviousInvokeOutputNextSparkRef

Last updated 6 months ago

Was this helpful?

๐Ÿ”ฅ