code: public Layer setScaleX(float sx) {
      if (scaleX != sx) {
        scaleX = sx;
        setFlag(Flag.XFDIRTY, true);
      }
      return this;
    }
docs: Sets the current x scale of this layer. Note that a scale of {@code 1} is equivalent to no
  scale.
  
  <p><em>Note:</em> all transform changes are deferred until {@link #transform} is called
  (which happens during rendering, if not before) at which point the current scale, rotation and
  translation are composed into an affine transform matrix. This means that, for example,
  setting rotation and then setting scale will not flip the rotation like it would were these
  applied to the transform matrix one operation at a time. </p>
  
  @param sx non-zero scale value.
  @return a reference to this layer for call chaining.