Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - English

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

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

Scilab Help >> Graphics > interaction > twinkle

twinkle

highlights one or more graphical objects by flashing them

Syntax

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

Arguments

h

handle or vector of handles of one or several graphical entities to blink. By default, the current graphic entity pointed by gce() is considered.

n

positive integer number: the number of blinks. Default n = 5.

Description

twinkle blinks n times graphical entities handled with h. If some of the objects are initially invisible, they are blinked with other ones and are finally left invisible before returning.

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.

Examples

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)       // cos plot twinkle
twinkle(p2,10)    // sin plot twinkle 10 times
twinkle(gca())    // axes twinkle

// 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)

See also

History

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-2024 (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:
Mon Jan 03 14:23:28 CET 2022