Cal. Penal Code § 594.1
(a)
(d) It is unlawful for any person to carry on his or her person and in plain view to the public etching cream or an aerosol container of paint while in any posted public facility, park, playground, swimming pool, beach, or recreational area, other than a highway, street, alley, or way, unless he or she has first received valid authorization from the governmental entity which has jurisdiction over the public area.
As used in this subdivision, “posted” means a sign placed in a reasonable location or locations stating it is a misdemeanor to possess etching cream or a spray can of paint in that public facility, park, playground, swimming pool, beach, or recreational area without valid authorization.
(e)
(2) As a condition of probation for any violation of this subdivision, the court may order a defendant convicted of a violation of this subdivision to perform community service as follows:
(f) Violation of any provision of this section is a misdemeanor. Upon conviction of any person under this section, the court may, in addition to any other punishment imposed, if the jurisdiction has adopted a graffiti abatement program as defined in subdivision (f) of Section 594, order the defendant, and his or her parents or guardians if the defendant is a minor, to keep the damaged property or another specified property in the community free of graffiti, as follows:
(3) If the defendant has two or more prior convictions under this section, for 240 days.
Participation of a parent or guardian is not required under this subdivision if the court deems this participation to be detrimental to the defendant, or if the parent or guardian is a single parent who must care for young children.