Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Biblioteca de Gráficos > interaction > twinkle

twinkle

Faz uma entidade gráfica piscar

Seqüência de Chamamento

twinkle
twinkle(n)
twinkle(h)
twinkle(h,n)

Parâmetros

h

identificador ou vetor de identificadores de uma ou várias entidades gráficas para piscar. Por padrão, a entidade gráfica atual apontada por gce() é considerada.

n

número de flashes. Por padrão, n = 5

Descrição

twinkle pisca n times objects gráficos cujos identificadores são especificados em h. Se alguns dos objetos são inicialmente invisíveis, eles piscam com o outros, tornam-se invisíveis novamente após o relâmpago.

If twinkle() is run while no graphical figure exists, it does nothing and returns. If the handle h has some invalid components (the entity has been deleted in the meantime), twinkle(h..) yields an error.

Exemplos

clf
plot()
twinkle     // twinkles the last group of curves plotted in the plot() example
twinkle(3)  // twinkles it only three times

clf
x = linspace(-2*%pi,2*%pi,100)';
plot2d(x,[sin(x),cos(x)]);
e = gce();
p1 = e.children(1);
p2 = e.children(2);
twinkle(p1)     // fazendo piscar o esboço de cos
twinkle(p2,10)  // fazendo piscar o esboço de sin piscar
twinkle(gca())  // eixos piscando

// Blinking a subset of many curves, with some initially invisible ones
clf
plot()
c = gca().children.children(1:10);
c(1:5).visible = "off";
sleep(5,'s')
twinkle(c)

Ver Também

Histórico

VersionDescription
6.0

twinkle() and twinkle(n) added.

6.1

Several independent objects can now be blinked together.

Report an issue
<< seteventhandler interaction xclick >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 25 08:52:32 CET 2020