<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Tagged with setautoinitialization() - Processing 2.x and 3.x Forum</title>
      <link>https://forum.processing.org/two/discussions/tagged/feed.rss?Tag=setautoinitialization%28%29</link>
      <pubDate>Sun, 08 Aug 2021 18:22:18 +0000</pubDate>
         <description>Tagged with setautoinitialization() - Processing 2.x and 3.x Forum</description>
   <language>en-CA</language>
   <atom:link href="/two/discussions/taggedsetautoinitialization%28%29/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>Size problem on two window at the same sketch</title>
      <link>https://forum.processing.org/two/discussion/23268/size-problem-on-two-window-at-the-same-sketch</link>
      <pubDate>Fri, 30 Jun 2017 13:55:56 +0000</pubDate>
      <dc:creator>forty69</dc:creator>
      <guid isPermaLink="false">23268@/two/discussions</guid>
      <description><![CDATA[<p>Hi Everyone,</p>

<p>I have written a code that uses the "controlP5" library. The sketch has some sliders and textboxes. The setup function of the sketch has the information about the position of the gui elements.</p>

<p>So, I want to make a simulation. In fact, I did on other sketch, but I got a size problem when I implement the simulation and the code on the same sketch. Let me explain a bit more about the simulation :</p>

<p>I used P3D to apply the coordinates of the shape by using vertex function.</p>

<p>Here is a quick example of what I did so far :</p>

<pre><code>          public class SecondApplet extends PApplet {
          public void settings() {
                size(1000, 600,P3D);
              }
          public void setup() {

            translate(width/2,height/3, -200);
            stroke(255);
            noFill();

            beginShape();

            vertex(-82.27,0,47.5); vertex(0,0,-23.75);
            vertex(82.27,0,47.5); vertex(-82.27,0,47.5);


            vertex(-270,0,0); vertex(-65,397.5,0);
            vertex(32.5,397.5,-56.3); vertex(32.5,397.5,56.3);

            vertex(-65,397.5,0); vertex(32.5,397.5,56.3);
            vertex(135,0,233.827); vertex(82.27,0,47.5);

            vertex(0,0,-23.75); vertex(135,0,-233.827);
            vertex(32.5,397.5,-56.3);
            endShape();
          }
        }

        void setup() {
          size(1000,800);
          frameRate(25);

          controlP5 = new ControlP5(this);
          controlP5.setAutoInitialization(false);

          /* Setups of the gui elements ...
              -----------------------*/

          SecondApplet sa = new SecondApplet();
          String[] args = {"TwoFrameTest"};
          PApplet.runSketch(args, sa);
          updateGuiElements();
        }
</code></pre>

<p>So, the situation is the size problem on the two windows that I wanted to see when I run the sketch. The main window, which is on the "void setup()" section, is smaller than the second window.</p>

<p>I tried to find out the solution, but I couldn't overcome this problem. What I have to do in order to solve this situation ?</p>

<p>( I tried to explain the problem as well as I can).</p>

<p>I am looking forward to your suggestions. Thanks in advanced.</p>

<p>Have a nice works to all..</p>
]]></description>
   </item>
   </channel>
</rss>