src/Api/Community.php
public function setBackgroundColor(int $color) : void
    {
        $background = $this->info(true)->backgroundImage;

        $this->set([
            'backgroundImage' => [
                'color' => sprintf('%06X', $color),
                'sourceUrl' => $background->sourceUrl ?? ''
            ]
        ]);
    }
public function setBackgroundColor(int $color) : void
    {
        $background = $this->info(true)->backgroundImage;

        $this->set([
            'backgroundImage' => [
                'color' => sprintf('%06X', $color),
                'sourceUrl' => $background->sourceUrl ?? ''
            ]
        ]);
    }
public function setBackgroundColor ( int $ color ) : void { $ background = $ this -> info ( true ) -> backgroundImage ; $ this -> set ( [ 'backgroundImage' => [ 'color' => sprintf ( '%06X' , $ color ) , 'sourceUrl' => $ background -> sourceUrl ?? '' ] ] ) ; }
Sets the background color for the Community.

@param integer $color RGB value (e.g. 0x000000).
@return void
Sets the background color for the Community .