Cogent Graphics example Matlab script

function Example

cgloadlib
cgopen(1,0,0,1)

cgpenwid(10)
siz = 0;

kd(1) = 0;
while kd(1) == 0
 kd = cgkeymap;

 cgellipse(0,0,siz,siz,[1 1 1])
 cgflip(0,0,0)

 siz = siz + 2;
 if siz > 640
  siz = 0;
 end

end
cgshut
return
% Declares a matlab function.

% Initializes Cogent Graphics.
% Opens a graphics screen.

% Initialises circle diameter to 0.
% Set drawing pen width to 10 units.

% These three lines establish a loop
% which repeats until the user presses
% the "Esc" key on the keyboard.

% Draw a white circle offscreen.
% Display the offscreen area.

% This section increments the circle
% diameter and resets the value to
% zero if it exceeds 640.


% End of the "Esc" key loop

% Close the graphics display
% End of the function

Latest news - lectures

  • Future engagement: 27 April 2018
    Dialogue: The view from the Inside. The emotional abilities of the human brain. Semir Zeki will be in discussion with French artist Laurent Grasso at the Carlo Scarpa hall at the MAXXI: Museo Nazionale delle Arti del XXI secolo, Rome.
  • Future engagement: 6 May 2018
    A lecture on The Science of Beauty at 19:00 at the Salone del Podesta in the Palazzo Re Enzo as part of the Festival della Scienza Medica, Bologna.
  • Future engagement: 11-13 May 2018
    Four lectures; (1) The Organisation of the Visual Pathways, (2) The Construction of Colour, (3) The Objectivity of Subjective Experience: From Colour to Beauty and (4) The Disunity of Consciousness at the Novotel Kolkata, India as part of the Fine Weekend Neurology Course.
  • Future engagement: 30 May 2018
    Lecture: The Contribution of Neuroesthetics to Philosophies of Aesthetics at the Dipartimento di Scienze Umanistiche, Università degli Studi di Catania, Italy
  • Future engagement: 9-12 July 2018
    Lecture: The Neurobiology of Beauty at the Franklin-Wilkins Building, King's College London as part of the XII International Symposium of Functional Neuroreceptor Mapping of the Living Brain
  • Future engagement: 15-16 November 2018
    Lecture: The Neurobiology of Beauty as part of the Fresco Conference on Synaptic Plasticity, Florence, Italy
  • Future engagement: 7 December 2018
    Lecture: The Neurobiology of Aesthetic Experiences and Judgement at the Salpetriere Hospital, Paris for the French Society of Neurology

Latest news - publications

  • Recently appeared: The Rough Seas of Cortical Cartography by Semir Zeki is now available in Trends in Neurosciences
  • Recently appeared: The Bayesian-Laplacian Brain Semir Zeki, Oliver Y. Chèn bioRXiv
  • Recently appeared: Imaging the passionate stage of romantic love by dopamine dynamics by Kayo Takahashi, Kei Mizuno, Akihiro T Sasaki, Yasuhiro Wada, Masaaki Tanaka, Akira Ishii, Kanakao Tajima, Naohiro Tsuyuguchi, Kyosuke Watanabe, Semir Zeki and Yasuyoshi Watanabe is now available in Frontiers in Human Neuroscience
  • Recently appeared: A special issue of The Philosophical Transactions of the Royal Society, edited by Semir Zeki, to commemorate the 350th anniversary of the birth of this, the first peer-reviewed journal, is now online. It is entitled "Cerebral Cartography: a vision of its future" and contains, among other articles, ones giving detailed descriptions of the American, European and Japanese brain initiative programmes.
  • Now available: Semir Zeki's first book, A Vision of the Brain, can be downloaded here.
  • Now available: Splendors and Miseries of the Brain is now available in Greek and Polish (also available in Spanish, Italian and German).
  • Now available: Inner Vision by Semir Zeki.