Source Academy Modules
    Preparing search index...

    Function pyramid

    • Returns a square pyramid Shape in the specified color.

      • Height: 1
      • Base length: 1
      • Center: (0.5, 0.5, 0.5)

      Parameters

      • hex: string

        hex color code

      Returns Shape