It can be used for various visual effects or more complex interface/scripts.
Just select code and paste it into geom's script window. You can do it for few selected geoms too.
Script for cirlces:
Script for boxes:
Just select code and paste it into geom's script window. You can do it for few selected geoms too.
Estos códigos se deben introducir en el espacio reservado del menu de scripts que aparece exactamente debajo de la advertencia Utilízalo bajo tu propio riesgo
Script for cirlces:
- CODE: SELECT ALL
_color = color;
_mouseOverCircle = {
circle := readable(owner);
r := circle.radius;
d := circle.pos - app.mousepos;
r * r > d(0) * d(0) + d(1) * d(1)
};
color = {_mouseOverCircle ? (owner._color * [2, 2, 2, 1]) : owner._color}
Script for boxes:
- CODE: SELECT ALL
_color = color;
_mouseOverBox = {
box := readable(owner);
a := box.angle;
m := box.pos - app.mousepos;
mx := (math.cos(a) * m(0) + math.sin(a) * m(1));
my := ( - math.sin(a) * m(0) + math.cos(a) * m(1));
dx := box.size(0) / 2;
dy := box.size(1) / 2;
mx * mx < dx * dx && my * my < dy * dy
};
color = {_mouseOverBox ? (owner._color * [2, 2, 2, 1]) : owner._color}
amigo, me gustaria mucho que te pusieras en contacto conmigo, mi correo es: augustoshark15@gmail.com te agradeceria mucho
ResponderEliminar