2022-06-08 12:47:24 +00:00
|
|
|
// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
|
2024-02-23 14:41:04 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
2014-12-17 11:35:40 +00:00
|
|
|
|
2015-11-07 19:02:14 +00:00
|
|
|
import QtQuick 2.4 as QQ2
|
2015-10-15 14:05:37 +00:00
|
|
|
import Qt3D.Core 2.0
|
2015-10-18 08:58:19 +00:00
|
|
|
import Qt3D.Render 2.0
|
2016-04-11 12:58:17 +00:00
|
|
|
import Qt3D.Extras 2.0
|
2014-12-17 11:35:40 +00:00
|
|
|
|
|
|
|
Entity {
|
2015-07-21 08:12:29 +00:00
|
|
|
components: [ mesh, material, transform ]
|
2014-12-17 11:35:40 +00:00
|
|
|
|
2020-07-30 11:03:46 +00:00
|
|
|
SphereMesh {
|
2014-12-17 11:35:40 +00:00
|
|
|
id: mesh
|
2020-07-30 11:03:46 +00:00
|
|
|
radius: 3
|
2014-12-17 11:35:40 +00:00
|
|
|
}
|
2015-07-21 08:12:29 +00:00
|
|
|
|
|
|
|
Transform {
|
|
|
|
id: transform
|
2015-11-07 19:02:14 +00:00
|
|
|
scale: 3
|
2015-07-21 08:12:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QQ2.ColorAnimation {
|
|
|
|
target: material
|
|
|
|
property: "diffuse"
|
|
|
|
from: "yellow"
|
|
|
|
to: "orange"
|
|
|
|
duration: 1500
|
|
|
|
loops: QQ2.Animation.Infinite
|
|
|
|
running: true
|
|
|
|
}
|
|
|
|
|
|
|
|
QQ2.NumberAnimation {
|
2015-11-07 19:02:14 +00:00
|
|
|
target: transform
|
2015-07-21 08:12:29 +00:00
|
|
|
property: "scale"
|
|
|
|
duration: 1500
|
|
|
|
loops: QQ2.Animation.Infinite
|
|
|
|
running: true
|
|
|
|
easing.type: QQ2.Easing.InOutQuad
|
|
|
|
from: 1
|
|
|
|
to: 1.5
|
|
|
|
}
|
2014-12-17 11:35:40 +00:00
|
|
|
}
|