mirror of https://git.sr.ht/~kikoodx/momento
16 lines
311 B
C
16 lines
311 B
C
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
|
/* Copyright (C) 2021 KikooDX */
|
|
|
|
#include "transition.h"
|
|
|
|
struct Transition
|
|
transition_init(float speed, color_t color, enum TransitionMode mode)
|
|
{
|
|
return (struct Transition){
|
|
.step = 0.0,
|
|
.speed = speed,
|
|
.color = color,
|
|
.mode = mode,
|
|
};
|
|
}
|