text: import { initFromConfigClone } from "/scripts/util/config.js"
  
  import SpeedComponent from "/scripts/ecs/comp/move/SpeedComponent.js"
  import Color          from "/scripts/graph/Color.js"
  
  import ShowArrowVecSystem from "./ShowArrowVecSystem.js"
  
  export default class ShowSpeedSystem extends ShowArrowVecSystem {
      static defaultArrowColor = Color.blue()
      static defaultTextColor  = ShowSpeedSystem.defaultArrowColor
  
      constructor(ctx, cameraProvider, config = {}) {
          initFromConfigClone(config, config, ShowSpeedSystem, "arrowColor", "textColor")
  
          config.evalVec = entity => entity.components.get(SpeedComponent).speed
  
          super(ctx, cameraProvider, config)
  
          this.tag      = "show-speed"
          this.priority = -4
          this.required.add(SpeedComponent)
      }
  }
  